Fix add to cart & prepare for user activation

This commit is contained in:
cond0r
2021-03-03 17:48:11 +02:00
parent f92cfc9605
commit e2368efa95
23 changed files with 329 additions and 177 deletions

View File

@@ -48,7 +48,8 @@ export const handler: SWRHook<
edges = data.node?.products?.edges ?? []
if (brandId) {
edges = edges.filter(
({ node: { vendor } }: ProductEdge) => vendor === brandId
({ node: { vendor } }: ProductEdge) =>
vendor.replace(/\s+/g, '-').toLowerCase() === brandId
)
}
} else {