mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:41:09 +02:00
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:
parent
1e7bfd44ec
commit
b095532e00
2 changed files with 4 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue