Fix eslint error and update svelte related stuff
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user