Page MenuHomePhabricator

D9395.diff
No OneTemporary

D9395.diff

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

Mime Type
text/plain
Expires
Sun, Sep 29, 3:05 PM (21 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2201170
Default Alt Text
D9395.diff (869 B)

Event Timeline