?admin use JavaScript Optional chaining

This commit is contained in:
the-djmaze 2022-09-01 21:28:37 +02:00
parent 17fa031064
commit 1a130d0be3
4 changed files with 9 additions and 9 deletions

View file

@ -85,7 +85,7 @@ export class AdminSettingsContacts extends AbstractViewSettings {
this.testContactsSuccess(true);
} else {
this.testContactsError(true);
if (data && data.Result) {
if (data?.Result) {
this.testContactsErrorMessage(data.Result.Message || '');
} else {
this.testContactsErrorMessage('');