forked from abner/for-legacy-web
fix: handle null relationship; fixes #607
not sure if this was intended from the API sidefeat/draggable-server-list
parent
ac0c100846
commit
0ce128b108
|
|
@ -1 +1 @@
|
|||
Subproject commit f1a4d54a5567f6bce7dfab0bda7e9381fc5d062b
|
||||
Subproject commit 74f2b7110db5abb5cde74903378b0c418e4ffb14
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue