From 29d2d4d63395e031331ecd23f2b24a1f13ab7b3d Mon Sep 17 00:00:00 2001 From: Akinfolami Akin-Alamu Date: Mon, 6 May 2024 19:33:15 -0400 Subject: [PATCH] chore: Update query key in ProfileForm component --- frontend/src/components/organisms/ProfileForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/organisms/ProfileForm.tsx b/frontend/src/components/organisms/ProfileForm.tsx index 0e0fe45f..ebf9c8bc 100644 --- a/frontend/src/components/organisms/ProfileForm.tsx +++ b/frontend/src/components/organisms/ProfileForm.tsx @@ -145,7 +145,7 @@ const ProfileForm = ({ userDetails }: ProfileFormProps) => { }); }, onSuccess: () => { - queryClient.invalidateQueries({ queryKey: ["preferences"] }); + queryClient.invalidateQueries({ queryKey: ["profile"] }); }, retry: false, });