Skip to content

Commit

Permalink
Fix for swatches variation naming issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nomasi committed Sep 14, 2023
1 parent f87fcfb commit 89ed10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/SizeSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class SwatchesVariationSelect extends AbstractSelect {
for (let i = 0; i < options.length; i++) {
const option = options.item(i);
const sizeValue = option.dataset.value;
const textSpan = option.innerText;
const textSpan = option.dataset.name ?? option.innerText;
if (textSpan) {
this.selectors[sizeValue] = mkSelectFn(option);
this.sizeMapper.push([sizeValue, textSpan.trim()]);
Expand Down

0 comments on commit 89ed10c

Please sign in to comment.