From 5f552a9883627632dd32deb63158a22422a3b853 Mon Sep 17 00:00:00 2001 From: Catherine Renelle <32781029+catrenelle@users.noreply.github.com> Date: Thu, 26 Feb 2026 19:31:02 -0500 Subject: [PATCH] Fix account settings: add invalidateAll, robust error handling - Add invalidateAll() after profile save so nav bar updates immediately - Wrap all async handlers in try/finally to prevent stuck loading states - Make form onsubmit handlers async to properly propagate errors Co-Authored-By: Claude Opus 4.6 --- src/routes/account/+page.svelte | 61 +++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 25 deletions(-) diff --git a/src/routes/account/+page.svelte b/src/routes/account/+page.svelte index 375abaa..3fd4ee6 100644 --- a/src/routes/account/+page.svelte +++ b/src/routes/account/+page.svelte @@ -1,6 +1,7 @@ @@ -77,7 +88,7 @@

Profile

-
{ e.preventDefault(); saveProfile(); }} class="space-y-3"> + { e.preventDefault(); await saveProfile(); }} class="space-y-3">

Change Password

- { e.preventDefault(); changePassword(); }} class="space-y-3"> + { e.preventDefault(); await changePassword(); }} class="space-y-3">