We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cedeca0 + c2780ec commit 118a197Copy full SHA for 118a197
app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js
@@ -711,7 +711,7 @@ define([
711
}
712
);
713
714
- if (result.oldPrice.amount !== result.finalPrice.amount) {
+ if (typeof result != 'undefined' && result.oldPrice.amount !== result.finalPrice.amount) {
715
$(this.options.slyOldPriceSelector).show();
716
} else {
717
$(this.options.slyOldPriceSelector).hide();
0 commit comments