From f28f250fab1e506ce4149805bd50295b13f6e1bc Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Tue, 29 Oct 2024 19:17:05 +0000 Subject: [PATCH 1/2] fix(#51): Ensure the input for quantity is reactive --- src/lib/components/checkout/BasketItem.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/checkout/BasketItem.svelte b/src/lib/components/checkout/BasketItem.svelte index 3924f37..1a50ef5 100644 --- a/src/lib/components/checkout/BasketItem.svelte +++ b/src/lib/components/checkout/BasketItem.svelte @@ -11,10 +11,11 @@ export let price = 0; export let quantity = 0; + $: dispatch('changeQuantity', { itemId, quantity }); + function reduceQuantityByOne() { if (quantity > 1) { quantity--; - dispatch('changeQuantity', { itemId, quantity }); } else { dispatch('removeItem', { itemId }); } @@ -22,7 +23,6 @@ function increaseQuantityByOne() { quantity++; - dispatch('changeQuantity', { itemId, quantity }); } From 8bc8399b5f6edf928f0db3d4887a75695072399b Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Tue, 29 Oct 2024 19:17:25 +0000 Subject: [PATCH 2/2] chore(*): Remove redundant page --- src/routes/auth/update-password/+page.svelte | 81 -------------------- 1 file changed, 81 deletions(-) delete mode 100644 src/routes/auth/update-password/+page.svelte diff --git a/src/routes/auth/update-password/+page.svelte b/src/routes/auth/update-password/+page.svelte deleted file mode 100644 index aabfc69..0000000 --- a/src/routes/auth/update-password/+page.svelte +++ /dev/null @@ -1,81 +0,0 @@ - - - - Update Password - - -
-

Update Password

-
- - - -
-