Cache errors

Missing `;`
This commit is contained in:
Michał Gdula 2024-05-03 19:43:27 +01:00
parent 7f7fa3b3ab
commit 9761e4b0aa
3 changed files with 21 additions and 24 deletions

View file

@ -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,
}})
)
);
});
}