From f938c30990a251d0df07e419e733f54b1a546e83 Mon Sep 17 00:00:00 2001 From: RobertIviteb <91942975+RobertIviteb@users.noreply.github.com> Date: Tue, 18 Oct 2022 15:00:28 +0300 Subject: [PATCH] fixed seller ids spacing (#19) --- node/resolvers/menu.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/node/resolvers/menu.ts b/node/resolvers/menu.ts index 51fe69d..b1e5c05 100644 --- a/node/resolvers/menu.ts +++ b/node/resolvers/menu.ts @@ -60,7 +60,10 @@ const replaceStyles = (menuStyle: Menu[]) => { const parseSellerIDs = (menuItems: Menu[], regionID: string) => { return menuItems.filter((item) => { - const excludeSellerIDs = item?.sellerIDs?.trim().split(',') + const excludeSellerIDs = item?.sellerIDs + ?.trim() + .replace(/ /g, '') + .split(',') if (excludeSellerIDs?.includes(regionID) && regionID !== '') { return false