mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 16:53:36 -05:00
fix: handle null relationship; fixes #607
not sure if this was intended from the API side
This commit is contained in:
parent
ac0c100846
commit
0ce128b108
2 changed files with 3 additions and 2 deletions
2
external/lang
vendored
2
external/lang
vendored
|
@ -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 a new issue