Skip to content

Commit

Permalink
Update name
Browse files Browse the repository at this point in the history
  • Loading branch information
cctina516 committed Feb 21, 2025
1 parent 0d9ec47 commit ff2b5d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions blocks/commerce-mini-cart/commerce-mini-cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export default async function decorate(block) {
});
},
PreCheckoutSection: (ctx) => {
const productListFooter = document.createElement('div');
ctx.appendChild(productListFooter);
const preCheckoutSection = document.createElement('div');
ctx.appendChild(preCheckoutSection);

Check failure on line 58 in blocks/commerce-mini-cart/commerce-mini-cart.js

View workflow job for this annotation

GitHub Actions / build

Trailing spaces not allowed
ctx.onChange((next) => {
// Clear the existing content
productListFooter.innerHTML = '';
preCheckoutSection.innerHTML = '';

Check failure on line 62 in blocks/commerce-mini-cart/commerce-mini-cart.js

View workflow job for this annotation

GitHub Actions / build

Trailing spaces not allowed
if (Object.keys(next.data.items).length === 0) {
return;
Expand All @@ -79,8 +79,8 @@ export default async function decorate(block) {
// Append the content div to the shadow wrapper
shadowWrapper.appendChild(contentDiv);

// Append the shadow wrapper to the productListFooter div
productListFooter.appendChild(shadowWrapper);
// Append the shadow wrapper to the preCheckoutSection div
preCheckoutSection.appendChild(shadowWrapper);
});
},
},
Expand Down

0 comments on commit ff2b5d5

Please sign in to comment.