Skip to content

Commit 8af50a9

Browse files
committed
fix refetch after profile update
1 parent 3322692 commit 8af50a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contexts/profile-context.js

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const ProfileProvider = ({ children }) => {
1818
dispatch({ type: LOADING });
1919
const userProfileDocument = await getUserProfile(uid);
2020
dispatch({ type: GET, payload: { profile: userProfileDocument }});
21+
return userProfileDocument;
2122
} catch(error) {
2223
dispatch({ type: ERROR });
2324
}

0 commit comments

Comments
 (0)