Skip to content

Commit cd621ac

Browse files
committed
Convert number to boolean
1 parent caa54f1 commit cd621ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

refactor/src/components/Product/SingleProduct.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const SingleProduct = ({ product }: IProductRootObject) => {
101101
<p className="pt-1 mt-4 text-2xl text-gray-900">
102102
{DESCRIPTION_WITHOUT_HTML}
103103
</p>
104-
{product.stockQuantity && (
104+
{Boolean(product.stockQuantity) && (
105105
<p
106106
v-if="data.product.stockQuantity"
107107
className="pt-1 mt-4 mb-4 text-2xl text-gray-900"

0 commit comments

Comments
 (0)