Skip to content

Commit 0fd2fe9

Browse files
committed
#17695 ConfigurableProduct show prices in select options
Fix js static test failure
1 parent 149f545 commit 0fd2fe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ define([
393393
} else {
394394
allowedProducts = options[i].products.slice(0);
395395

396-
if (typeof allowedProducts[0] !== 'undefined'
397-
&& typeof optionPrices[allowedProducts[0]] !== 'undefined') {
396+
if (typeof allowedProducts[0] !== 'undefined' &&
397+
typeof optionPrices[allowedProducts[0]] !== 'undefined') {
398398

399399
optionFinalPrice = parseFloat(optionPrices[allowedProducts[0]].finalPrice.amount);
400400
optionPriceDiff = optionFinalPrice - basePrice;

0 commit comments

Comments
 (0)