Skip to content

Commit

Permalink
MAGETWO-69541: #7959 - Fix for JS error on Swatch Renderer for undefi…
Browse files Browse the repository at this point in the history
…ned oldPrice #9776

 - Merge Pull Request #9776 from dreamworkers/magento2:fix/7959-oldprice-swatchrenderer
  • Loading branch information
Oleksii Korshenko committed May 29, 2017
2 parents cedeca0 + 8e43515 commit beda62f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ define([
}
);

if (result.oldPrice.amount !== result.finalPrice.amount) {
if (typeof result != 'undefined' && result.oldPrice.amount !== result.finalPrice.amount) {
$(this.options.slyOldPriceSelector).show();
} else {
$(this.options.slyOldPriceSelector).hide();
Expand Down

0 comments on commit beda62f

Please sign in to comment.