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
  • Loading branch information
Oleksii Korshenko authored May 31, 2017
2 parents cedeca0 + beda62f commit c2780ec
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 c2780ec

Please sign in to comment.