Skip to content

Commit

Permalink
magento#7959 - Fix for JS error on Swatch Renderer for undefined oldP…
Browse files Browse the repository at this point in the history
…rice
  • Loading branch information
Abhisek Pandey committed May 29, 2017
1 parent e1e4617 commit 8e43515
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 8e43515

Please sign in to comment.