Fix eslint error and update svelte related stuff

This commit is contained in:
2023-01-22 21:39:10 +01:00
parent 1143651549
commit b76f70a05f
32 changed files with 80 additions and 70 deletions

View File

@@ -25,7 +25,7 @@ export const getCart = async () => {
/**
* Add a product to a cart
*/
export const addToCart = async (product: any, quantity: number = 1) => {
export const addToCart = async (product: any, quantity = 1) => {
const updatedCart = await swell.cart.addItem({
product_id: product.id,
quantity,