fix(notify): fix for scac code when there is more characters after the split
This commit is contained in:
@@ -23,7 +23,8 @@ export const scacCheck = async (data: any) => {
|
||||
? `<SCAC>${data[0].remark
|
||||
.split(",")[0]
|
||||
.split(":")[1]
|
||||
?.toUpperCase()}</SCAC>`
|
||||
?.toUpperCase()
|
||||
.slice(0, 4)}</SCAC>`
|
||||
: `<SCAC/>`
|
||||
}
|
||||
<Mode/>
|
||||
|
||||
Reference in New Issue
Block a user