shit oops

This commit is contained in:
Dank074 2021-08-12 02:16:19 -05:00
parent dcc1b7cb70
commit ec05810c90

View File

@ -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);