mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-06-02 08:23:14 +00:00
Cache errors
Missing `;`
This commit is contained in:
parent
7f7fa3b3ab
commit
9761e4b0aa
3 changed files with 21 additions and 24 deletions
|
@ -1,7 +1,6 @@
|
|||
import type { Writable } from "svelte/store";
|
||||
import { get, writable } from "svelte/store";
|
||||
import { type Writable, get, writable } from "svelte/store";
|
||||
|
||||
import { type CartItem } from './types';
|
||||
import {type CartItem, type Item } from './types';
|
||||
import { getItemByUUID, postVerifyCart } from "./test-api";
|
||||
|
||||
|
||||
|
@ -32,14 +31,14 @@ function createCartStore() {
|
|||
});
|
||||
} else {
|
||||
await getItemByUUID(uuid)
|
||||
.then((data) => {
|
||||
.then((data: Item) => {
|
||||
cart.update((cart: Record<string, CartItem>) =>
|
||||
Object.assign({}, cart, {[uuid]: {
|
||||
uuid: uuid,
|
||||
amount: amount,
|
||||
data: data,
|
||||
}})
|
||||
)
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue