Skip to content

Commit

Permalink
MAGETWO-66321: Check of null result value in swatch-renderer.js #8923
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Korshenko authored Mar 28, 2017
2 parents dca5182 + 39cc4c2 commit 6001299
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -868,13 +868,13 @@ 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();
}

if (result.tierPrices.length) {
if (typeof result != 'undefined' && result.tierPrices.length) {
if (this.options.tierPriceTemplate) {
tierPriceHtml = mageTemplate(
this.options.tierPriceTemplate,
Expand Down

0 comments on commit 6001299

Please sign in to comment.