RN-487 Added null check for user in UserProfile (#1120)
This commit is contained in:
parent
ea3bcf66f4
commit
4b57f4fed0
1 changed files with 4 additions and 0 deletions
|
|
@ -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/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue