fix(clock): load alarms/timers in guest mode

Remove auth check before loading data - the stores already handle
guest mode by loading from sessionStorage instead of API.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-01-25 03:07:08 +01:00
parent 1e7bfd44ec
commit b095532e00
2 changed files with 4 additions and 6 deletions

View file

@ -81,9 +81,8 @@
}
onMount(async () => {
if (authStore.isAuthenticated) {
await alarmsStore.fetchAlarms();
}
// Load alarms - works for both authenticated and guest mode
await alarmsStore.fetchAlarms();
});
function openEditModal(alarm: Alarm) {

View file

@ -28,9 +28,8 @@
let allTimers = $derived([...timersStore.timers, ...localTimers]);
onMount(async () => {
if (authStore.isAuthenticated) {
await timersStore.fetchTimers();
}
// Load timers - works for both authenticated and guest mode
await timersStore.fetchTimers();
});
onDestroy(() => {