mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2024-12-26 17:36:15 +00:00
style: format code with Prettier
This commit fixes the style issues introduced in a1dfcd3
according to the output
from Prettier.
Details: None
This commit is contained in:
parent
a1dfcd3c35
commit
8dca5acee0
|
@ -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 let cartLoaded = Cart.init()
|
||||
export let cartLoaded = Cart.init();
|
||||
|
||||
// Make sure to update localstorage on any changes
|
||||
Cart.subscribe((value) => {
|
||||
|
|
|
@ -139,5 +139,5 @@ export async function postVerifyCart(
|
|||
});
|
||||
|
||||
await fakeDelay(1);
|
||||
return newCartData
|
||||
return newCartData;
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ Contains the following:
|
|||
- melon
|
||||
`,
|
||||
labels: [Labels.nut, Labels.gluten, Labels.spicy, Labels.fish],
|
||||
images: ["/item_images/wathog.jpg","/item_images/sonichog.jpg"],
|
||||
images: ["/item_images/wathog.jpg", "/item_images/sonichog.jpg"],
|
||||
},
|
||||
{
|
||||
uuid: "bluhog",
|
||||
|
|
Loading…
Reference in a new issue