From f7ac115cc2c43d08f61c0e5a16657fd732a0a520 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 5 Nov 2017 20:52:40 +0100 Subject: API check --- StoneIsland/www/js/lib/products/ProductView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'StoneIsland/www/js/lib/products') diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index de29bf73..1c13a7c4 100755 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -44,7 +44,7 @@ var ProductView = ScrollableView.extend({ if (this.not_available) { app.footer.show("SOLD OUT") } - else if (this.isNotAvailableInCanada) { + else if (this.isNotAvailable) { app.footer.show("NOT AVAILABLE") } else { @@ -185,10 +185,10 @@ var ProductView = ScrollableView.extend({ var notAvailableInCanada = !! app.store.notAvailableInCanada app.product.$notAvailableInCanada.toggle( notAvailableInCanada ) if (notAvailableInCanada && sim.data.countryCode === 'ca') { - this.isNotAvailableInCanada = true + this.isNotAvailable = true } else { - this.isNotAvailableInCanada = false + this.isNotAvailable = false } this.showFooter() -- cgit v1.2.3-70-g09d2