From: PhiTux Date: Sat, 11 Oct 2025 16:01:56 +0000 (+0200) Subject: fix to always show today after login X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=89f1e87fe75386db9e2e41a4d3916af20fbdc3f6;p=DailyTxT.git fix to always show today after login --- diff --git a/frontend/src/routes/(authed)/+layout.svelte b/frontend/src/routes/(authed)/+layout.svelte index c4c2e91..55de698 100644 --- a/frontend/src/routes/(authed)/+layout.svelte +++ b/frontend/src/routes/(authed)/+layout.svelte @@ -47,6 +47,7 @@ import github from '$lib/assets/GitHub-Logo.png'; import dailytxt from '$lib/assets/locked_heart_with_keyhole.svg'; import donate from '$lib/assets/bmc-button.png'; + import { selectedDate } from '$lib/calendarStore'; const { t } = getTranslate(); const tolgee = getTolgee(['language']); @@ -203,6 +204,12 @@ return; // Stop further initialization } + $selectedDate = { + year: new Date().getFullYear(), + month: new Date().getMonth() + 1, + day: new Date().getDate() + }; + // Normal initialization only if authenticated getUserSettings(); getTemplates();