Skip to content

Commit

Permalink
Merge pull request #29 from Irinina/patch-1
Browse files Browse the repository at this point in the history
Fix issue with empty tooltips
  • Loading branch information
Spaggel committed Nov 3, 2021
2 parents eedb584 + 44f5579 commit 7099fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/frontend/web/js/swatch-renderer-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ define(['jquery'], function ($) {

// Check if the tooltip has content and we are not in the product list,
// otherwise set it to an empty string
var hasTooltip = item.tooltip.length > 0 && !$widget.inProductList;
var hasTooltip = item.tooltip && item.tooltip.length > 0 && !$widget.inProductList;
var toolTipHtml = hasTooltip ?
'<span class="spaggel-tooltip">' +
'<a class="tooltip-toggle">?</a>' +
Expand Down

0 comments on commit 7099fd0

Please sign in to comment.