From 984718ce7459261aea4af7fea0042e1992e45309 Mon Sep 17 00:00:00 2001 From: Ciprian Platica Date: Thu, 23 Nov 2023 00:04:34 +0200 Subject: [PATCH] Refresh Auth user when uploading avatar --- client/src/redux/api/userApi.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/redux/api/userApi.ts b/client/src/redux/api/userApi.ts index da2ceb1..8e0f056 100644 --- a/client/src/redux/api/userApi.ts +++ b/client/src/redux/api/userApi.ts @@ -388,6 +388,7 @@ export const userApi = createApi({ body: data, }; }, + invalidatesTags: ["Auth"], }), }), });