Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32176693
D9395.1765068281.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
869 B
Referenced Files
None
Subscribers
None
D9395.1765068281.diff
View Options
diff --git a/native/user-profile/user-profile-relationship-button.react.js b/native/user-profile/user-profile-relationship-button.react.js
--- a/native/user-profile/user-profile-relationship-button.react.js
+++ b/native/user-profile/user-profile-relationship-button.react.js
@@ -41,7 +41,10 @@
);
React.useLayoutEffect(() => {
- if (otherUserInfo?.relationshipStatus === userRelationshipStatus.FRIEND) {
+ if (
+ !otherUserInfo ||
+ otherUserInfo.relationshipStatus === userRelationshipStatus.FRIEND
+ ) {
setUserProfileRelationshipButtonHeight(0);
} else if (
otherUserInfo?.relationshipStatus ===
@@ -56,6 +59,7 @@
setUserProfileRelationshipButtonHeight(userProfileActionButtonHeight);
}
}, [
+ otherUserInfo,
otherUserInfo?.relationshipStatus,
setUserProfileRelationshipButtonHeight,
]);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 12:44 AM (17 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5841705
Default Alt Text
D9395.1765068281.diff (869 B)
Attached To
Mode
D9395: [native] fix viewer user profile bototm sheet snap point
Attached
Detach File
Event Timeline
Log In to Comment