From be1ce5fd4cf7063efbcafaf95fa49aee8c1b610c Mon Sep 17 00:00:00 2001 From: Lixian Zhou Date: Mon, 9 Mar 2026 16:03:27 -0400 Subject: [PATCH] fix --- client/src/components/trans-routes/RoutesSection.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(() => {