Skip to content

Commit

Permalink
Merge pull request #55 from deco-sites/task/11108
Browse files Browse the repository at this point in the history
11108 - fix: corrigido nome do vendedor
  • Loading branch information
marcusvl authored Sep 4, 2024
2 parents 1a1879d + 9d56420 commit c7d8f49
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/product/ProductDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,18 @@ function ProductInfo(
isVariantOf,
isSimilarTo,
url,

} = product;
const { price = 0, listPrice, seller, availability, installment } = useOffer(
offers,
);

const forPrice = product.offers?.offers[0].priceSpecification[1].price
const discount = listPrice && listPrice > price;
const vendorName = product.offers?.offers[0].sellerName


console.log(vendorName)

return (
<>
Expand All @@ -110,10 +115,10 @@ function ProductInfo(
)}
<div class="flex gap-[2px]">
<span class="text-[#4A4B51] text-sm">
Vendido e entregue por:
Vendido e entregue por:
</span>
<span class="text-secondary text-sm">
LojasTopMoveis
{vendorName}
</span>
</div>
</div>
Expand Down

0 comments on commit c7d8f49

Please sign in to comment.