diff --git a/client/src/components/trans-routes/RoutesSection.js b/client/src/components/trans-routes/RoutesSection.js index 4a89d15..be38fed 100644 --- a/client/src/components/trans-routes/RoutesSection.js +++ b/client/src/components/trans-routes/RoutesSection.js @@ -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(() => {