From a3b4cf830559212caf5116ab21d52196e49f9c44 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 8 May 2024 16:55:42 +0000 Subject: [PATCH] style: format code with Prettier This commit fixes the style issues introduced in 2135cf2 according to the output from Prettier. Details: None --- front/src/lib/cart.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/front/src/lib/cart.ts b/front/src/lib/cart.ts index ce0436e..761f872 100644 --- a/front/src/lib/cart.ts +++ b/front/src/lib/cart.ts @@ -17,7 +17,8 @@ function createCartStore() { } try { - const newData: Record = await postVerifyCart(localData); + const newData: Record = + await postVerifyCart(localData); cart.set(newData); } catch (error) { console.error("Could not load basket:", error); @@ -28,7 +29,7 @@ function createCartStore() { async function addToCart(uuid: string, amount: number) { if (!loaded) { - return + return; } if (get(cart)[uuid] !== undefined) { @@ -83,7 +84,7 @@ function createCartStore() { function removeByUUID(uuid: string) { if (!loaded) { - return + return; } cart.update((cart) => { @@ -106,7 +107,7 @@ function createCartStore() { // Create store const Cart = createCartStore(); -export const cartLoaded = Cart.init() +export const cartLoaded = Cart.init(); // Make sure to update localstorage on any changes Cart.subscribe((value) => {