From 2f3e5f2866fad3303b1178fa13d6a23e2af55620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Mon, 5 Aug 2024 14:55:36 +0200 Subject: [PATCH] fix: use correct data on product Cart callbacks --- apps/website/src/components/organisms/Cart/Cart.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/website/src/components/organisms/Cart/Cart.svelte b/apps/website/src/components/organisms/Cart/Cart.svelte index e5add89..80e65e3 100644 --- a/apps/website/src/components/organisms/Cart/Cart.svelte +++ b/apps/website/src/components/organisms/Cart/Cart.svelte @@ -22,7 +22,7 @@ } /** Item quantity changed */ - const changedQuantity = async ({ detail: { id, quantity } }) => { + const changedQuantity = async ({ id, quantity }: { id: string, quantity: number }) => { // Cart is now updating $cartIsUpdating = true @@ -37,7 +37,7 @@ } /** Item removed */ - const removedItem = async ({ detail: id }) => { + const removedItem = async (id: string) => { // Cart is now updating $cartIsUpdating = true