diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-05-26 14:39:39 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-05-26 14:39:39 +0700 |
| commit | 1a247903bf7bb87e0a43b4e5e338ea67ec90e6de (patch) | |
| tree | 6482f0a980cd914f89497da33e59a0301810139b /src-migrate/modules | |
| parent | 8ef5d44ff4aaf3f8826ffbb28e4466451a750af1 (diff) | |
<miqdad> cleaning code
Diffstat (limited to 'src-migrate/modules')
| -rw-r--r-- | src-migrate/modules/cart/components/ItemSelect.tsx | 4 |
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]); |
