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
|
? `<SCAC>${data[0].remark
|
||||||
.split(",")[0]
|
.split(",")[0]
|
||||||
.split(":")[1]
|
.split(":")[1]
|
||||||
?.toUpperCase()}</SCAC>`
|
?.toUpperCase()
|
||||||
|
.slice(0, 4)}</SCAC>`
|
||||||
: `<SCAC/>`
|
: `<SCAC/>`
|
||||||
}
|
}
|
||||||
<Mode/>
|
<Mode/>
|
||||||
|
|||||||
Reference in New Issue
Block a user