Fixed calendar and req profile

This commit is contained in:
MaxOvs19 committed 2023-10-27 18:32:37 +03:00
1 parent 5e69e922f5
commit 6a74ddb424
4 files changed
+8 -6

No files matched your search

@@ -26,9 +26,9 @@ export const ProfileHeader = () => {
if (localStorage.getItem("role_status") === "18") {
return;
}
apiRequest(`/profile/${localStorage.getItem("cardId")}`).then(
(profileInfo) => dispatch(setProfileInfo(profileInfo))
);
apiRequest(`/user/me`).then((profileInfo) => {
dispatch(setProfileInfo(profileInfo.userCard));
});
}, [dispatch]);
const handler = () => {