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
|
@ -52,8 +52,7 @@ export default class RoomUpgradeDialog extends React.Component<IProps, IState> {
|
|||
.catch((err) => {
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("room_settings|advanced|error_upgrade_title"),
|
||||
description:
|
||||
err && err.message ? err.message : _t("room_settings|advanced|error_upgrade_description"),
|
||||
description: err?.message ?? _t("room_settings|advanced|error_upgrade_description"),
|
||||
});
|
||||
})
|
||||
.finally(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue