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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user