forked from Ivasoft/mattermost-mobile
RN-487 Added null check for user in UserProfile (#1120)
This commit is contained in:
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user