fix login bug

This commit is contained in:
JCEEE
2026-09-07 17:45:17 +01:00
parent a959f204bd
commit 7ced424a36
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -117,7 +117,7 @@
$effect(() => {
if (!page.data.session) return;
recordShortcut({
famSlug: page.params.fam || '',
famSlug: (page.data.fam?.slug as string) || page.params.fam || '',
famName: (page.data.fam?.name as string) || page.params.fam || '',
userName: page.data.role === 'parent' ? '' : page.params.username || ''
});