forked from M3-Academy/challenge-vtex-io
Entrega do Desafio #1
@ -4,9 +4,10 @@ import styles from "./styles.css";
|
||||
|
||||
const Pix = () => {
|
||||
const product = useProduct();
|
||||
console.log(product)
|
||||
const pix = {
|
||||
pix: Number(
|
||||
product?.selectedItem?.sellers[0].commertialOffer.Installments[0].Value
|
||||
product?.selectedItem?.sellers[0].commertialOffer.Price
|
||||
),
|
||||
};
|
||||
const discount = pix.pix * 0.1;
|
||||
|
Loading…
Reference in New Issue
Block a user