Skip to content

Commit

Permalink
fixed seller ids spacing (vtex-apps#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertIviteb authored Oct 18, 2022
1 parent 478ac06 commit f938c30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node/resolvers/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f938c30

Please sign in to comment.