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();