We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38ea782 commit 9a907cbCopy full SHA for 9a907cb
src/app/about/contexts/about-context.tsx
@@ -161,6 +161,7 @@ export function AboutProvider({ children }: AboutProviderProps) {
161
if (response?.status === 200) {
162
const user = response.data.resource[0];
163
dispatch({ type: "fetch_success", user });
164
+ setCookie({ user: JSON.stringify(user) });
165
}
166
} catch (error) {
167
console.error(error);
@@ -222,6 +223,7 @@ export function AboutProvider({ children }: AboutProviderProps) {
222
223
224
setCookie({ user: JSON.stringify(updatedUser) });
225
dispatch({ type: "fetch_success", user: updatedUser });
226
+ await handleGetUser();
227
handleSetShouldOpenUpdateUserModal();
228
229
0 commit comments