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
|
@ -124,7 +124,7 @@ export default class ProfileSettings extends React.Component<{}, IState> {
|
|||
logger.log("Failed to save profile", err);
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Failed to save your profile"),
|
||||
description: err && err.message ? err.message : _t("The operation could not be completed"),
|
||||
description: err instanceof Error ? err.message : _t("The operation could not be completed"),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue