Skip to content

Commit 275b8b9

Browse files
committed
And in JS too
1 parent 474ae09 commit 275b8b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/shopify/alpine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const createData = (Alpine) => {
158158
},
159159

160160
outOfStock(variant) {
161-
return variant.inventory_policy == 'deny' && variant.inventory_quantity <= 0;
161+
return variant.inventory_policy && (variant.inventory_policy.toLowerCase() == 'deny') && (variant.inventory_quantity <= 0);
162162
},
163163

164164
variantExistsAndIsInStock() {

0 commit comments

Comments
 (0)