fix(kez-chat/web): blank page after login — redirect to /chats not /dashboard
Unlock (passphrase + biometric) and CreateAccount still pushed to /dashboard, which the redesign removed from the routes map. svelte-spa- router matched nothing and rendered a blank page. Point them at /chats (the new home). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
7bbe336f6b
commit
0d7e48bed0
@ -265,7 +265,7 @@
|
||||
</p>
|
||||
<button
|
||||
class="mt-4 px-4 py-2 bg-accent text-accent-contrast rounded-md hover:bg-accent-dim"
|
||||
onclick={() => push("/dashboard")}
|
||||
onclick={() => push("/chats")}
|
||||
>
|
||||
Go to dashboard
|
||||
</button>
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
const id = await unlockIdentity(passphrase);
|
||||
session.setUnlocked(id);
|
||||
passphrase = "";
|
||||
push("/dashboard");
|
||||
push("/chats");
|
||||
} catch (e) {
|
||||
error = (e as Error).message;
|
||||
} finally {
|
||||
@ -62,7 +62,7 @@
|
||||
const seed = await unlockWithBiometric();
|
||||
const id = await unlockWithSeed(seed);
|
||||
session.setUnlocked(id);
|
||||
push("/dashboard");
|
||||
push("/chats");
|
||||
} catch (e) {
|
||||
error = (e as Error).message;
|
||||
// If biometric fails (user cancelled, sensor errored), fall back
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user