forked from M3-Academy/challenge-vtex-io
refactor(Pix.tsx): removendo console.log
This commit is contained in:
parent
3cd9ed0b6e
commit
bd92c3230f
@ -4,11 +4,8 @@ import styles from "./styles.css";
|
||||
|
||||
const Pix = () => {
|
||||
const product = useProduct();
|
||||
console.log(product)
|
||||
const pix = {
|
||||
pixValue: Number(
|
||||
product?.selectedItem?.sellers[0].commertialOffer.Price
|
||||
),
|
||||
pixValue: Number(product?.selectedItem?.sellers[0].commertialOffer.Price),
|
||||
};
|
||||
const discount = pix.pixValue * 0.1;
|
||||
const pixPrice = pix.pixValue - discount;
|
||||
|
Loading…
Reference in New Issue
Block a user