vanilli-shop-client
Advanced tools
Comparing version 1.4.8 to 1.4.9
@@ -214,3 +214,3 @@ "use strict"; | ||
var stock = product.stock; | ||
if (stock && 1 > stock) { | ||
if (stock && stock >= 0 && 1 > stock) { | ||
notificationStore.notifyError(translationStore.t("product.out-of-stock", "Toodet {0} on saadaval ainult {1}", [product.name, stock.toString()])); | ||
@@ -240,3 +240,3 @@ return false; | ||
var stock = product.stock; | ||
if (stock && qty > stock) { | ||
if (stock && stock >= 0 && qty > stock) { | ||
notificationStore.notifyError(translationStore.t("product.out-of-stock", "Toodet {0} on saadaval ainult {1}", [product.name, stock.toString()])); | ||
@@ -243,0 +243,0 @@ return false; |
{ | ||
"name": "vanilli-shop-client", | ||
"version": "1.4.8", | ||
"version": "1.4.9", | ||
"description": "Client for Vanilli Shop API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -241,3 +241,3 @@ import BaseStore from "./base-store"; | ||
if (stock && 1 > stock) { | ||
if (stock && stock >= 0 && 1 > stock) { | ||
notificationStore.notifyError(translationStore.t("product.out-of-stock", "Toodet {0} on saadaval ainult {1}", [product.name, stock.toString()])); | ||
@@ -274,3 +274,3 @@ return false; | ||
if (stock && qty > stock) { | ||
if (stock && stock >= 0 && qty > stock) { | ||
notificationStore.notifyError(translationStore.t("product.out-of-stock", "Toodet {0} on saadaval ainult {1}", [product.name, stock.toString()])); | ||
@@ -277,0 +277,0 @@ return false; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
260492