Skip to content

Commit

Permalink
fix product.customizable checks
Browse files Browse the repository at this point in the history
  • Loading branch information
SharakPL committed Feb 1, 2024
1 parent 79225b0 commit 99510dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _dev/front/js/components/Product/Product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,23 @@
<button
class="btn wishlist-product-addtocart"
:class="{
'btn-secondary': product.customizable === '1',
'btn-primary': product.customizable === '0'
'btn-secondary': product.customizable,
'btn-primary': !product.customizable
}"
:disabled="isDisabled || forceDisable"
:disabled="!product.customizable && (isDisabled || forceDisable)"
@click="
product.add_to_cart_url || product.customizable === '1'
product.add_to_cart_url || product.customizable
? addToCartAction()
: null
"
>
<i
class="material-icons shopping-cart"
v-if="product.customizable === '0'"
v-if="!product.customizable"
>
shopping_cart
</i>
{{ product.customizable === '1' ? customizeText : addToCart }}
{{ product.customizable ? customizeText : addToCart }}
</button>

<button
Expand Down

0 comments on commit 99510dc

Please sign in to comment.