From d701ab9d521825a5494090b02ce9e56a79ef8e31 Mon Sep 17 00:00:00 2001
From: Shravya Ramesh <shravs1208@gmail.com>
Date: Tue, 18 May 2021 16:49:27 -0700
Subject: fix undefined pending users length

---
 src/screens/profile/InviteFriendsScreen.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/screens/profile/InviteFriendsScreen.tsx')

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}
-- 
cgit v1.2.3-70-g09d2

