RN-487 Added null check for user in UserProfile (#1120)

This commit is contained in:
Harrison Healey 2017-11-12 06:34:24 -05:00 committed by enahum
parent ea3bcf66f4
commit 4b57f4fed0

View file

@ -148,6 +148,10 @@ class UserProfile extends PureComponent {
const {config, theme, user} = this.props;
const style = createStyleSheet(theme);
if (!user) {
return null;
}
return (
<View style={style.container}>
<StatusBar/>