Skip to content

Commit

Permalink
Fixed race condition for cart note updates (#3125)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleralsbury authored Nov 23, 2023
1 parent b0ba46d commit 2c84724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ if (!customElements.get('cart-note')) {
super();

this.addEventListener(
'change',
'input',
debounce((event) => {
const body = JSON.stringify({ note: event.target.value });
fetch(`${routes.cart_update_url}`, { ...fetchConfig(), ...{ body } });
Expand Down

0 comments on commit 2c84724

Please sign in to comment.