From f4fb2d857a5739abf96474b1b29b19b203668442 Mon Sep 17 00:00:00 2001 From: M1kola Date: Mon, 27 Feb 2023 16:57:33 +0300 Subject: [PATCH] partner-personal-area --- src/components/ProfileHeader/ProfileHeader.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ProfileHeader/ProfileHeader.js b/src/components/ProfileHeader/ProfileHeader.js index 845b284a..1496dc52 100644 --- a/src/components/ProfileHeader/ProfileHeader.js +++ b/src/components/ProfileHeader/ProfileHeader.js @@ -64,6 +64,9 @@ export const ProfileHeader = () => { const [isLoggingOut, setIsLoggingOut] = useState(false); useEffect(() => { + if (localStorage.getItem('role_status') === '18') { + return + } apiRequest(`/profile/${localStorage.getItem('cardId')}`) .then((profileInfo) => dispatch(setProfileInfo(profileInfo))