From 8f42f1ca1a92b89f2b148bd7ce93bab8b20d9127 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Sun, 12 Nov 2017 06:34:24 -0500 Subject: [PATCH] RN-487 Added null check for user in UserProfile (#1120) --- app/screens/user_profile/user_profile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/screens/user_profile/user_profile.js b/app/screens/user_profile/user_profile.js index 8c8faa53e..29c34a600 100644 --- a/app/screens/user_profile/user_profile.js +++ b/app/screens/user_profile/user_profile.js @@ -148,6 +148,10 @@ class UserProfile extends PureComponent { const {config, theme, user} = this.props; const style = createStyleSheet(theme); + if (!user) { + return null; + } + return (