summaryrefslogtreecommitdiff
path: root/src-migrate/modules
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-05-26 14:39:39 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-05-26 14:39:39 +0700
commit1a247903bf7bb87e0a43b4e5e338ea67ec90e6de (patch)
tree6482f0a980cd914f89497da33e59a0301810139b /src-migrate/modules
parent8ef5d44ff4aaf3f8826ffbb28e4466451a750af1 (diff)
<miqdad> cleaning code
Diffstat (limited to 'src-migrate/modules')
-rw-r--r--src-migrate/modules/cart/components/ItemSelect.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-migrate/modules/cart/components/ItemSelect.tsx b/src-migrate/modules/cart/components/ItemSelect.tsx
index f580f81d..00c7be43 100644
--- a/src-migrate/modules/cart/components/ItemSelect.tsx
+++ b/src-migrate/modules/cart/components/ItemSelect.tsx
@@ -68,8 +68,8 @@ const CartItemSelect = ({ item }: Props) => {
// Fall back to server state if no cookie exists
setLocalSelected(item.selected);
- // Save this state to cookie for future use
- updateSelectedItemInCookie(item.id, item.selected, false); // don't notify for initial sync
+ // Save state to cookie for future
+ updateSelectedItemInCookie(item.id, item.selected, false);
}
}, [item.id, item.selected, localSelected, cart, updateCartItem, isUpdating]);