Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
DARK : COD v1 > fix selected variant on cart drawer (#361)
Browse files Browse the repository at this point in the history
## QA Steps

- [ ] `pnpm i`
- [ ] `pnpm dev`

## Note

Leave empty when you have nothing to say
  • Loading branch information
bj-anas authored Jul 12, 2023
1 parent 79142e6 commit 6ac1d60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,8 @@ function setup() {
if (productDetails) {
const observer = new MutationObserver(() => {
const selectedVariant = getSelectedVariant(section);
const variantIdInput = section.querySelector('#variantId');
variantIdInput.value = selectedVariant.id;

updateProductDetails(
section,
Expand Down

0 comments on commit 6ac1d60

Please sign in to comment.