Conform more of the codebase to strictNullChecks
(#11100)
This commit is contained in:
parent
328db8fdfd
commit
7b3a4e556a
16 changed files with 30 additions and 26 deletions
|
@ -75,7 +75,7 @@ export default class UserView extends React.Component<IProps, IState> {
|
|||
} catch (err) {
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Could not load user profile"),
|
||||
description: err && err.message ? err.message : _t("Operation failed"),
|
||||
description: err instanceof Error ? err.message : _t("Operation failed"),
|
||||
});
|
||||
this.setState({ loading: false });
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue