diff options
Diffstat (limited to 'examples/with-nanostores/src/cartStore.ts')
-rw-r--r-- | examples/with-nanostores/src/cartStore.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/with-nanostores/src/cartStore.ts b/examples/with-nanostores/src/cartStore.ts index f490a2447..00270180a 100644 --- a/examples/with-nanostores/src/cartStore.ts +++ b/examples/with-nanostores/src/cartStore.ts @@ -13,7 +13,7 @@ export type CartItemDisplayInfo = Pick<CartItem, 'id' | 'name' | 'imageSrc'>; export const cartItems = map<Record<string, CartItem>>({}); -export function addCartItem({ id, name, imageSrc }) { +export function addCartItem({ id, name, imageSrc }: CartItem) { const existingEntry = cartItems.get()[id]; if (existingEntry) { cartItems.setKey(id, { |