mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-06-09 11:53:11 +00:00
style: format code with Prettier
This commit fixes the style issues introduced in 7b4cbef
according to the output
from Prettier.
Details: None
This commit is contained in:
parent
7b4cbef983
commit
9d19529b8e
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ function createCartStore() {
|
||||||
await getItemByUUID(uuid).then((data: Item) => {
|
await getItemByUUID(uuid).then((data: Item) => {
|
||||||
cart.update((cart: Record<string, CartItem>) =>
|
cart.update((cart: Record<string, CartItem>) =>
|
||||||
Object.assign({}, cart, {
|
Object.assign({}, cart, {
|
||||||
[uuid]: {uuid, amount, data},
|
[uuid]: { uuid, amount, data },
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -72,7 +72,7 @@ function createCartStore() {
|
||||||
|
|
||||||
function removeByUUID(uuid: string) {
|
function removeByUUID(uuid: string) {
|
||||||
cart.update((cart) => {
|
cart.update((cart) => {
|
||||||
delete cart[uuid]; // skipcq: JS-0320
|
delete cart[uuid]; // skipcq: JS-0320
|
||||||
return cart;
|
return cart;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue