Page MenuHomePhabricator

D3732.diff
No OneTemporary

D3732.diff

diff --git a/lib/hooks/relationship-prompt.js b/lib/hooks/relationship-prompt.js
--- a/lib/hooks/relationship-prompt.js
+++ b/lib/hooks/relationship-prompt.js
@@ -49,7 +49,7 @@
const updateRelationship = React.useCallback(
async (action: RelationshipAction) => {
try {
- invariant(otherUserInfo, 'Other user info should be present');
+ invariant(otherUserInfo?.id, 'Other user info id should be present');
return await callUpdateRelationships({
action,
userIDs: [otherUserInfo.id],
@@ -59,7 +59,7 @@
throw e;
}
},
- [callUpdateRelationships, onErrorCallback, otherUserInfo],
+ [callUpdateRelationships, onErrorCallback, otherUserInfo?.id],
);
const dispatchActionPromise = useDispatchActionPromise();

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 5:42 PM (19 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2594539
Default Alt Text
D3732.diff (797 B)

Event Timeline