We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 149f545 commit 0fd2fe9Copy full SHA for 0fd2fe9
app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js
@@ -393,8 +393,8 @@ define([
393
} else {
394
allowedProducts = options[i].products.slice(0);
395
396
- if (typeof allowedProducts[0] !== 'undefined'
397
- && typeof optionPrices[allowedProducts[0]] !== 'undefined') {
+ if (typeof allowedProducts[0] !== 'undefined' &&
+ typeof optionPrices[allowedProducts[0]] !== 'undefined') {
398
399
optionFinalPrice = parseFloat(optionPrices[allowedProducts[0]].finalPrice.amount);
400
optionPriceDiff = optionFinalPrice - basePrice;
0 commit comments