From c58ca48c8b584a9898cdd7b7dbf52011eba559bf Mon Sep 17 00:00:00 2001 From: Guilherme Popolin Date: Wed, 5 Jul 2023 10:08:57 +0200 Subject: [PATCH] nit(OfferPresenter): updated verification for the application of a price reduction --- .../src/components/ProductPage/PurchaseForm/OfferPresenter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/store/src/components/ProductPage/PurchaseForm/OfferPresenter.tsx b/apps/store/src/components/ProductPage/PurchaseForm/OfferPresenter.tsx index 22a442d4d9..07248bd2c6 100644 --- a/apps/store/src/components/ProductPage/PurchaseForm/OfferPresenter.tsx +++ b/apps/store/src/components/ProductPage/PurchaseForm/OfferPresenter.tsx @@ -296,7 +296,7 @@ const useDiscountTooltipProps = ( if (selectedOffer.priceMatch) { const company = selectedOffer.priceMatch.externalInsurer.displayName - if (selectedOffer.priceMatch.priceReduction.amount < 1) { + if (selectedOffer.priceMatch.priceReduction.amount <= 0) { // No price reduction due to incomparable offers const amount = formatter.monthlyPrice(selectedOffer.priceMatch.externalPrice) return {