algolia / algolia-pwa-demo

3 stars 1 forks source link

fix: don't require pricebooks #33

Closed sbellone closed 1 month ago

sbellone commented 1 month ago

The demo currently require pricebooks, while it's not an attribute that we recommend by default. Without it, it breaks with the following error:

Uncaught TypeError: data is undefined
    isSale productsPlugin.tsx:92
    ProductItem productsPlugin.tsx:152

This PR changes how the sale price is calculated, to make it work with the default attributes:


SFCC-390