Skip to content

Commit 742a0bf

Browse files
committed
Update SingleProduct.component.tsx
1 parent dd438db commit 742a0bf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/components/Product/SingleProduct.component.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ const SingleProduct = ({ product }: IProductRootObject) => {
7979
/>
8080
)}
8181
<div className="ml-8">
82-
<p className="text-3xl font-bold text-center md:text-left">{name}</p>
82+
<p className="text-3xl font-bold text-center md:text-left">
83+
{name}
84+
</p>
8385
<br />
8486
{/* Display sale price when on sale */}
8587
{onSale && (
@@ -136,10 +138,6 @@ const SingleProduct = ({ product }: IProductRootObject) => {
136138
</p>
137139
)}
138140
<div className="pt-1 mt-2">
139-
{
140-
// Display default AddToCart button if we do not have variations.
141-
// If we do, send the variationId to AddToCart button
142-
}
143141
{product.variations && (
144142
<AddToCart
145143
product={product}

0 commit comments

Comments
 (0)