registration

This commit is contained in:
Mikola committed 2023-11-05 20:42:03 +03:00
1 parent 321b84a80e
commit 59fde487ea
6 files changed
+29 -15

No files matched your search

+5 -1
View File
@@ -77,7 +77,11 @@ export const Navigation = () => {
return;
}
apiRequest(`/user/me`).then((profileInfo) =>
dispatch(setProfileInfo(profileInfo.userCard ? profileInfo.userCard : profileInfo))
dispatch(
setProfileInfo(
profileInfo.userCard ? profileInfo.userCard : profileInfo
)
)
);
}, [dispatch]);