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
|
@ -71,7 +71,7 @@ export const WidgetContextMenu: React.FC<IProps> = ({
|
|||
} catch (err) {
|
||||
logger.error("Failed to start livestream", err);
|
||||
// XXX: won't i18n well, but looks like widget api only support 'message'?
|
||||
const message = err.message || _t("Unable to start audio streaming.");
|
||||
const message = err instanceof Error ? err.message : _t("Unable to start audio streaming.");
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Failed to start livestream"),
|
||||
description: message,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue