refactor(Pix.tsx): modificando nome pix para pixValue

This commit is contained in:
Ana Carolina Duarte Cavalcante 2023-01-25 15:11:57 -03:00
parent df1df77e2c
commit e6d1cad411

View File

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