style: format code with Prettier

This commit fixes the style issues introduced in 2135cf2 according to the output
from Prettier.

Details: None
This commit is contained in:
deepsource-autofix[bot] 2024-05-08 16:55:42 +00:00 committed by GitHub
parent 2135cf2aee
commit a3b4cf8305
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,8 @@ function createCartStore() {
}
try {
const newData: Record<string, CartItem> = await postVerifyCart(localData);
const newData: Record<string, CartItem> =
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) => {