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