Skip to content

Commit

Permalink
change the key to label
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchoi-dev committed Jan 22, 2025
1 parent 9f96bd7 commit 886bec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/blocks/merch-card/merch-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ export default async function init(el) {
ctaLink.addEventListener('mas:resolved', async () => {
const productName = ctaLink.value[0]?.productArrangement?.productFamily;
if (productName) {
await replaceKey(productName, getConfig()).then((key) => ctaLink.setAttribute('aria-label', `${ctaLink.textContent} - ${key}`));
await replaceKey(productName, getConfig()).then((label) => ctaLink.setAttribute('aria-label', `${ctaLink.textContent} - ${label}`));
}

Check warning on line 718 in libs/blocks/merch-card/merch-card.js

View check run for this annotation

Codecov / codecov/patch

libs/blocks/merch-card/merch-card.js#L715-L718

Added lines #L715 - L718 were not covered by tests
});
}
Expand Down

0 comments on commit 886bec8

Please sign in to comment.