about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authoromar0404 <64747363+omar0404@users.noreply.github.com>2025-03-12 15:58:57 +0200
committerGitHub <noreply@github.com>2025-03-12 06:58:57 -0700
commit5e1c262edc9595b4f3b0c586b34036e9f5a6dbdf (patch)
treee7d8083dd11c01f7a6a446e09454f5e9d3166785 /src
parent810e85c0738211924b05c8342092b1467c411e8d (diff)
downloadvoidsky-5e1c262edc9595b4f3b0c586b34036e9f5a6dbdf.tar.zst
fix: Account switcher shows outdated profile name (#7969)
Diffstat (limited to 'src')
-rw-r--r--src/state/queries/profile.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state/queries/profile.ts b/src/state/queries/profile.ts
index 227ca9d66..2cf144d3a 100644
--- a/src/state/queries/profile.ts
+++ b/src/state/queries/profile.ts
@@ -228,6 +228,9 @@ export function useProfileUpdateMutation() {
       queryClient.invalidateQueries({
         queryKey: RQKEY(variables.profile.did),
       })
+      queryClient.invalidateQueries({
+        queryKey: [profilesQueryKeyRoot, [variables.profile.did]],
+      })
     },
   })
 }