Skip to content

Commit

Permalink
other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Axelcureno committed Jun 6, 2024
1 parent 93ed1b9 commit cf29767
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/blocks/merch/merch.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ export async function getPriceContext(el, params) {

export async function buildCta(el, params) {
const large = !!el.closest('.marquee');
const strong = el.firstElementChild?.tagName === 'STRONG' || el.parentElement?.tagName === 'STRONG';
if (el.closest('.merch-offers.upgrade')) {
params.append('entitlement', 'false');
}
Expand All @@ -458,6 +457,7 @@ export async function buildCta(el, params) {
} else {
cta.classList.add('con-button');
cta.classList.toggle('button-l', large);
const strong = el.firstElementChild?.tagName === 'STRONG' || el.parentElement?.tagName === 'STRONG';
cta.classList.toggle('blue', strong);
}
if (context.entitlement !== 'false') {
Expand Down
19 changes: 15 additions & 4 deletions libs/deps/merch-card.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cf29767

Please sign in to comment.