Skip to content

Commit

Permalink
fix: correcao special price
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabriciocaldana committed Aug 27, 2024
1 parent d7648ba commit b8169cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b8169cb

Please sign in to comment.