mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-11-08 04:31:03 +00:00
fix: handle null relationship; fixes #607
not sure if this was intended from the API side
This commit is contained in:
1 parent
ac0c100846
commit
0ce128b108
2 files changed
+3
-2
No files matched your search
Vendored
+1
-1
Submodule external/lang updated: f1a4d54a55...74f2b7110d.
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user