Skip to content

Commit

Permalink
Merge pull request #57 from jcreek/51-editing-the-input-for-basket-it…
Browse files Browse the repository at this point in the history
…em-qty-doesnt-recalculate-subtotal

51 editing the input for basket item qty doesn't recalculate subtotal
  • Loading branch information
OllyNicholass authored Oct 29, 2024
2 parents 243dc88 + 8bc8399 commit b83b02f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 83 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/checkout/BasketItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
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 });
}
}
function increaseQuantityByOne() {
quantity++;
dispatch('changeQuantity', { itemId, quantity });
}
</script>

Expand Down
81 changes: 0 additions & 81 deletions src/routes/auth/update-password/+page.svelte

This file was deleted.

0 comments on commit b83b02f

Please sign in to comment.