aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-05-18 16:49:27 -0700
committerShravya Ramesh <shravs1208@gmail.com>2021-05-18 16:49:27 -0700
commitd701ab9d521825a5494090b02ce9e56a79ef8e31 (patch)
tree931d58b8742b78c0f697e83d11f7287809fd4a11
parent89685a45822ece75d6d075e581397968f538cfbf (diff)
fix undefined pending users length
-rw-r--r--src/screens/profile/InviteFriendsScreen.tsx6
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}