This commit is contained in:
@@ -19,7 +19,10 @@ const RoutesSection = ({transRoutes, copyList, sectionName, drivers, vehicles, c
|
||||
const scheduleDate = params.get('dateSchedule');
|
||||
|
||||
const normalizeCustomerType = (value) => `${value || ''}`.trim().toLowerCase().replace(/\s+/g, '_');
|
||||
const isMemberLikeType = (value) => [CUSTOMER_TYPE.MEMBER, CUSTOMER_TYPE.SELF_PAY].includes(normalizeCustomerType(value));
|
||||
const isMemberLikeType = (value) => {
|
||||
const normalizedType = normalizeCustomerType(value);
|
||||
return normalizedType === '' || [CUSTOMER_TYPE.MEMBER, CUSTOMER_TYPE.SELF_PAY].includes(normalizedType);
|
||||
};
|
||||
const isVisitorType = (value) => normalizeCustomerType(value) === CUSTOMER_TYPE.VISITOR;
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user