fix(manacore): update app layout

Minor updates to manacore app layout.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Till-JS 2025-12-05 04:20:27 +01:00
parent fd3341ff4d
commit fca93a9d35

View file

@ -125,8 +125,14 @@
$effect(() => {
// Redirect to login if not authenticated (after initialization)
if (authStore.initialized && !authStore.isAuthenticated) {
goto('/login');
// Use a small delay to ensure state has propagated after navigation
if (authStore.initialized && !authStore.loading && !authStore.isAuthenticated) {
// Small delay to handle navigation timing
setTimeout(() => {
if (!authStore.isAuthenticated) {
goto('/login');
}
}, 100);
}
});