mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +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();
|
const parser = event.getParser();
|
||||||
|
|
||||||
if(userProfile && userProfile.id === parser.id)
|
if(userProfile && userProfile.id !== parser.id)
|
||||||
OnClose();
|
{
|
||||||
|
setUserBadges([]);
|
||||||
|
setUserRelationships(null);
|
||||||
|
}
|
||||||
|
|
||||||
setUserProfile(parser);
|
setUserProfile(parser);
|
||||||
SendMessageHook(new UserCurrentBadgesComposer(parser.id));
|
SendMessageHook(new UserCurrentBadgesComposer(parser.id));
|
||||||
SendMessageHook(new UserRelationshipsComposer(parser.id));
|
SendMessageHook(new UserRelationshipsComposer(parser.id));
|
||||||
}, [OnClose, userProfile]);
|
}, [userProfile]);
|
||||||
|
|
||||||
CreateMessageHook(UserProfileEvent, OnUserProfileEvent);
|
CreateMessageHook(UserProfileEvent, OnUserProfileEvent);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user