fix(setup): Apply language choice and fix post-setup redirect

- Call changeLanguage(values.language) after successful owner creation so
  the UI immediately switches to the language the owner chose
- Call _markSystemInitialized() to update the router cache before navigating
  to /login; without this the guard saw initialized=false and redirected
  back to /setup, blocking the redirect

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-06-22 11:25:40 +02:00
co-authored by Claude Haiku 4.5
parent 27490356cb
commit 7237669b14
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -50,6 +50,11 @@ export function _resetSetupStatusCache(): void {
_setupStatusPromise = null;
}
export function _markSystemInitialized(): void {
_setupStatusCache = { initialized: true };
_setupStatusPromise = null;
}
function RouteFallback() {
return (
<div className="flex min-h-40 items-center justify-center text-muted-foreground">