mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
fix: handle null relationship; fixes #607
not sure if this was intended from the API side
This commit is contained in:
@@ -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