We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3322692 commit 8af50a9Copy full SHA for 8af50a9
contexts/profile-context.js
@@ -18,6 +18,7 @@ export const ProfileProvider = ({ children }) => {
18
dispatch({ type: LOADING });
19
const userProfileDocument = await getUserProfile(uid);
20
dispatch({ type: GET, payload: { profile: userProfileDocument }});
21
+ return userProfileDocument;
22
} catch(error) {
23
dispatch({ type: ERROR });
24
}
0 commit comments