diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-05-18 16:49:27 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-05-18 16:49:27 -0700 |
commit | d701ab9d521825a5494090b02ce9e56a79ef8e31 (patch) | |
tree | 931d58b8742b78c0f697e83d11f7287809fd4a11 | |
parent | 89685a45822ece75d6d075e581397968f538cfbf (diff) |
fix undefined pending users length
-rw-r--r-- | src/screens/profile/InviteFriendsScreen.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/screens/profile/InviteFriendsScreen.tsx b/src/screens/profile/InviteFriendsScreen.tsx index 06752dd4..bf91e8f3 100644 --- a/src/screens/profile/InviteFriendsScreen.tsx +++ b/src/screens/profile/InviteFriendsScreen.tsx @@ -206,7 +206,11 @@ const InviteFriendsScreen: React.FC<InviteFriendsScreenProps> = ({}) => { <View style={[ styles.subheader, - {height: 72 * results.pendingUsers.length}, + { + height: + 72 * + (results.pendingUsers ? results.pendingUsers.length : 1), + }, ]}> <Text style={styles.subheaderText}>Pending Users</Text> {PendingList} |