mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-27 08:00:51 +01:00
shit oops
This commit is contained in:
parent
dcc1b7cb70
commit
ec05810c90
@ -44,13 +44,16 @@ export const UserProfileView: FC = props =>
|
||||
{
|
||||
const parser = event.getParser();
|
||||
|
||||
if(userProfile && userProfile.id === parser.id)
|
||||
OnClose();
|
||||
if(userProfile && userProfile.id !== parser.id)
|
||||
{
|
||||
setUserBadges([]);
|
||||
setUserRelationships(null);
|
||||
}
|
||||
|
||||
setUserProfile(parser);
|
||||
SendMessageHook(new UserCurrentBadgesComposer(parser.id));
|
||||
SendMessageHook(new UserRelationshipsComposer(parser.id));
|
||||
}, [OnClose, userProfile]);
|
||||
}, [userProfile]);
|
||||
|
||||
CreateMessageHook(UserProfileEvent, OnUserProfileEvent);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user