forked from M3-Academy/challenge-vtex-io
refactor(Pix.tsx): modificando nome pix para pixValue
This commit is contained in:
parent
df1df77e2c
commit
e6d1cad411
@ -6,12 +6,12 @@ const Pix = () => {
|
||||
const product = useProduct();
|
||||
console.log(product)
|
||||
const pix = {
|
||||
pix: Number(
|
||||
pixValue: Number(
|
||||
product?.selectedItem?.sellers[0].commertialOffer.Price
|
||||
),
|
||||
};
|
||||
const discount = pix.pix * 0.1;
|
||||
const pixPrice = pix.pix - discount;
|
||||
const discount = pix.pixValue * 0.1;
|
||||
const pixPrice = pix.pixValue - discount;
|
||||
|
||||
return (
|
||||
<div className={styles.PixContent}>
|
||||
|
Loading…
Reference in New Issue
Block a user