fix(scac check): changes to also ignore if user put in [
This commit is contained in:
@@ -11,7 +11,9 @@ export const scacCheck = async (data: any) => {
|
||||
const priceSheet = `
|
||||
<PriceSheets>
|
||||
<PriceSheet type="Carrier" isSelected="${
|
||||
data[0].remark.includes("SCAC") && data[0].remark.split(",")[0]
|
||||
data[0].remark.includes("SCAC") && // make sure we have the word scac
|
||||
data[0].remark.split(",")[0] && // and its valid as well
|
||||
!data[0].remark.includes("[") // if they funny and put [carrier] just ignore it.
|
||||
? "true"
|
||||
: "false"
|
||||
}">
|
||||
|
||||
Reference in New Issue
Block a user