From b8169cb2ffb15484fc7fa8ae5dfe397590c79412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabr=C3=ADcio=20Caldana=20Anelli?= Date: Tue, 27 Aug 2024 14:06:17 -0300 Subject: [PATCH] fix: correcao special price --- .../buy-together/services/front-buy-together.adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/buy-together/services/front-buy-together.adapter.ts b/src/components/buy-together/services/front-buy-together.adapter.ts index f01815b..696bfa7 100644 --- a/src/components/buy-together/services/front-buy-together.adapter.ts +++ b/src/components/buy-together/services/front-buy-together.adapter.ts @@ -46,7 +46,7 @@ export class FrontBuyTogetherAdapter { const adaptSpecialPrice = (payments: Payment[]): number | null => { const pixMethod = payments.find(payment => payment.method === 'pix'); if (pixMethod) { - const specialPrice = product.price * Number(pixMethod.markup); + const specialPrice = Number(pixMethod.installment.total); return specialPrice; } return null;