Restored Add to cart

This commit is contained in:
Belen Curcio
2021-01-11 15:03:04 -03:00
parent 4fdaae2197
commit 9bbd7feed0
3 changed files with 7 additions and 11 deletions

View File

@@ -8,11 +8,13 @@ export function normalizeProduct(productNode: BCProduct): Product {
productOptions,
prices,
path,
options: _,
id: _,
options: _0,
...rest
} = productNode
return {
id,
path,
slug: path?.replace(/^\/+|\/+$/g, ''),
images: images.edges