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 ac0c100846
commit 0ce128b108
2 changed files with 3 additions and 2 deletions

2
external/lang vendored

@ -1 +1 @@
Subproject commit f1a4d54a5567f6bce7dfab0bda7e9381fc5d062b
Subproject commit 74f2b7110db5abb5cde74903378b0c418e4ffb14

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>