fix: handle null relationship; fixes #607

not sure if this was intended from the API side
This commit is contained in:
Paul Makles
2022-05-08 10:19:33 +01:00
parent d23912c836
commit 1101c70066
2 changed files with 3 additions and 2 deletions

View File

@@ -229,7 +229,8 @@ export const UserProfile = observer(
flags != 2 &&
flags != 4 &&
(user.relationship === "Incoming" ||
user.relationship === "None") && (
user.relationship === "None" ||
user.relationship === null) && (
<IconButton onClick={() => user.addFriend()}>
<UserPlus size={28} />
</IconButton>