Merge pull request #53 from apuc/partner-personal-area
partner-personal-area
This commit is contained in:
commit
b568ec699e
@ -64,6 +64,9 @@ export const ProfileHeader = () => {
|
|||||||
const [isLoggingOut, setIsLoggingOut] = useState(false);
|
const [isLoggingOut, setIsLoggingOut] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (localStorage.getItem('role_status') === '18') {
|
||||||
|
return
|
||||||
|
}
|
||||||
apiRequest(`/profile/${localStorage.getItem('cardId')}`)
|
apiRequest(`/profile/${localStorage.getItem('cardId')}`)
|
||||||
.then((profileInfo) =>
|
.then((profileInfo) =>
|
||||||
dispatch(setProfileInfo(profileInfo))
|
dispatch(setProfileInfo(profileInfo))
|
||||||
|
Loading…
Reference in New Issue
Block a user