-
-
+{#if entry}
+
+
+{:else}
+
+
+{/if}
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 8b011c4..3656ea5 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -14,7 +14,6 @@
let selectedDate = $state(today())
let selectEntry = async (hasEntry: boolean, data: string | null) => {
- console.log(data)
// data should be the entryID if hasEntry == true, or the date if there is no entry
if (hasEntry) {
const res = await fetch(`/api/entry?id=${data}`)
@@ -27,7 +26,7 @@
}
- await selectEntry(entryID)} />
+