Merge pull request #28236 from element-hq/t3chguy/sonar-happy

This commit is contained in:
Michael Telatynski 2024-10-18 15:55:15 +01:00 committed by GitHub
commit 4e93233a3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 46 additions and 67 deletions

View file

@ -74,7 +74,7 @@ const ExistingThreepid: React.FC<ExistingThreepidProps> = ({ mode, threepid, onC
logger.error("Unable to remove contact information: " + err);
Modal.createDialog(ErrorDialog, {
title: _t("settings|general|error_remove_3pid"),
description: err && err.message ? err.message : _t("invite|failed_generic"),
description: err?.message ?? _t("invite|failed_generic"),
});
});
},