mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Its serializer it's only used by this endpoint and app/assets/javascripts/templates/shop_variant.html.haml doesn't rely on the response's product.price but the variant's price. Because our DB schema allows NULL on spree_prices.amount, a master variant without a price can cause the shopfront not to load products. This was the case in https://app.bugsnag.com/yaycode/openfoodnetwork-uk/errors/60adfcc31cf9740007f82fc9.