diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index c3bfbcf..5632b39 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -10,6 +10,8 @@ $: if (resetConfirm === 0) { calorieDateMap.reset(); + // Set resetConfirm back to 3 after 1500 milliseconds + setTimeout(() => (resetConfirm = 3), 1500); } function updateDateQuery(date: string) { @@ -111,9 +113,12 @@
- + {#if resetConfirm === 0} +

Data has been reset!

+ {/if}