Skip to content

Commit

Permalink
Update cart.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fnhipster committed Nov 11, 2024
1 parent 58fd06c commit e8a2dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/initializers/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { fetchPlaceholders } from '../aem.js';

await initializeDropin(async () => {
// Experiment (Challenger 1)
const isVariantPlaceholder = document.body.classList.contains('variant-challenger-1');
const isVariantPlaceholder = document.body.classList.contains('experiment-cart001') && document.body.classList.contains('variant-challenger-1');

const labels = await fetchPlaceholders(isVariantPlaceholder ? '/drafts/marketer' : '');
const labels = await fetchPlaceholders(isVariantPlaceholder ? '/drafts/marketer' : undefined);

const langDefinitions = {
default: {
Expand Down

0 comments on commit e8a2dd4

Please sign in to comment.