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();
|
const product = useProduct();
|
||||||
console.log(product)
|
console.log(product)
|
||||||
const pix = {
|
const pix = {
|
||||||
pix: Number(
|
pixValue: Number(
|
||||||
product?.selectedItem?.sellers[0].commertialOffer.Price
|
product?.selectedItem?.sellers[0].commertialOffer.Price
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
const discount = pix.pix * 0.1;
|
const discount = pix.pixValue * 0.1;
|
||||||
const pixPrice = pix.pix - discount;
|
const pixPrice = pix.pixValue - discount;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.PixContent}>
|
<div className={styles.PixContent}>
|
||||||
|
Loading…
Reference in New Issue
Block a user