Merge pull request #28236 from element-hq/t3chguy/sonar-happy
This commit is contained in:
commit
4e93233a3d
18 changed files with 46 additions and 67 deletions
|
@ -1317,7 +1317,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||
const errCode = err.errcode || _td("error|unknown_error_code");
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("error_dialog|forget_room_failed", { errCode }),
|
||||
description: err && err.message ? err.message : _t("invite|failed_generic"),
|
||||
description: err?.message ?? _t("invite|failed_generic"),
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue