Entrega do Desafio #1

Merged
anacarolinaduartecavalcante merged 93 commits from feature/challenge-vtex-io into develop 2023-02-03 17:14:03 +00:00
Showing only changes of commit df1df77e2c - Show all commits

View File

@ -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;