Conform more of the codebase to strictNullChecks (#11100)

This commit is contained in:
Michael Telatynski
2023-06-22 14:39:36 +01:00
committed by GitHub
parent 328db8fdfd
commit 7b3a4e556a
16 changed files with 30 additions and 26 deletions

View File

@@ -160,7 +160,7 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
if (!this.unmounted) {
this.setState({
downloadBusy: false,
downloadProgress: _t("Failed to send logs: ") + `${err.message}`,
downloadProgress: _t("Failed to send logs: ") + `${err instanceof Error ? err.message : ""}`,
});
}
}