From 4b57f4fed0f8b79433eead2aaa867ad460e012a5 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 36d97be6f..53aadcf4f 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 (