From 62cb58cadccc52a8204e345251fb6116324597a7 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Mon, 11 Jan 2021 14:24:38 +0100 Subject: [PATCH] limit future and past goals on front page. --- svelte-ui/src/pages/FrontPage.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/svelte-ui/src/pages/FrontPage.svelte b/svelte-ui/src/pages/FrontPage.svelte index 3f0d7ee..d49c635 100644 --- a/svelte-ui/src/pages/FrontPage.svelte +++ b/svelte-ui/src/pages/FrontPage.svelte @@ -13,8 +13,8 @@ $: { if ($fpGoalStore.stale && !$fpGoalStore.loading) { fpGoalStore.load({ - maxTime: new Date(Date.now() + (86400000 * 30)), - minTime: new Date(Date.now() - (86400000 * 3)), + maxTime: new Date(Date.now() + (86400000 * 3)), + minTime: new Date(), }); } } @@ -123,4 +123,4 @@ margin: auto; } } - \ No newline at end of file +