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:
Jason Tudisco 2026-05-27 22:17:36 -06:00
parent 7bbe336f6b
commit 0d7e48bed0
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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