Skip to content

Commit d7ab0c4

Browse files
committed
fix type error
1 parent 810c3a6 commit d7ab0c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

view/src/routes/+page.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
let duration: number = $state(3 * HOUR);
1010
let lastFetch: Date = $state(new Date());
1111
const data = fetch(`/visits?kind=all&duration=${MAX_DURATION}`)
12+
.then((res) => res.json())
1213
.then((val) => {
1314
const parsed = v.safeParse(v.array(visit), val);
1415
if (!parsed.success) {

0 commit comments

Comments
 (0)