mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 08:38:37 +00:00
fix: handle null relationship; fixes #607
not sure if this was intended from the API side
This commit is contained in:
2
external/lang
vendored
2
external/lang
vendored
Submodule external/lang updated: f1a4d54a55...74f2b7110d
@@ -229,7 +229,8 @@ export const UserProfile = observer(
|
|||||||
flags != 2 &&
|
flags != 2 &&
|
||||||
flags != 4 &&
|
flags != 4 &&
|
||||||
(user.relationship === "Incoming" ||
|
(user.relationship === "Incoming" ||
|
||||||
user.relationship === "None") && (
|
user.relationship === "None" ||
|
||||||
|
user.relationship === null) && (
|
||||||
<IconButton onClick={() => user.addFriend()}>
|
<IconButton onClick={() => user.addFriend()}>
|
||||||
<UserPlus size={28} />
|
<UserPlus size={28} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user