diff options
Diffstat (limited to 'iridescence/src/components/ProductCard.vue')
-rw-r--r-- | iridescence/src/components/ProductCard.vue | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/iridescence/src/components/ProductCard.vue b/iridescence/src/components/ProductCard.vue index 269e416..36c7be5 100644 --- a/iridescence/src/components/ProductCard.vue +++ b/iridescence/src/components/ProductCard.vue @@ -39,10 +39,8 @@ export default { }, computed: { stock() { - if (this.quantity < 0) { + if (this.quantity == 0) { return "Made to order"; - } else if (this.quantity == 0) { - return "Out of stock"; } else { return [this.quantity, "in stock"].join(" "); } |