diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-11-06 02:12:20 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-11-06 02:12:20 +0100 |
| commit | 67ebfb1023f5edbb29533bcbbbb3fbccad156cf2 (patch) | |
| tree | 78265dda820128e82f008eda34e2d7f83fd6b239 /StoneIsland/www/js/lib/products/ProductView.js | |
| parent | dae573f0e464e4ef2cad3a12bd0584ea78ef4e61 (diff) | |
logic
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.js')
| -rwxr-xr-x | StoneIsland/www/js/lib/products/ProductView.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 218c151d..f9de3ab3 100755 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -132,16 +132,13 @@ var ProductView = ScrollableView.extend({ var notAvailableInCanada = !! app.store.NotAvailableInCanada app.product.$notAvailableInCanada.toggle( notAvailableInCanada ) - if (notAvailableInCanada && sim.data.countryCode === 'ca') { + + if (! ('Price' in details['Item'])) { this.isNotAvailable = true } else { this.isNotAvailable = false } - - if (! ('Price' in details['Item'])) { - this.isNotAvailable = true - } if (this.sold_out || this.isNotAvailable) { this.$style.css("opacity", 0) |
