RED-10198 - missleading error message - creating user with existing email

This commit is contained in:
Valentin Mihai 2024-10-30 14:36:06 +02:00
parent 12d30af308
commit c787881c76

View File

@ -101,11 +101,7 @@ export class UserDetailsComponent extends BaseFormComponent implements OnInit {
this.closeDialog.emit(true);
})
.catch(error => {
if (error.status === HttpStatusCode.Conflict) {
this._toaster.error(_('add-edit-user.error.email-already-used'));
} else {
this._toaster.error(_('add-edit-user.error.generic'));
}
this._toaster.error(null, { error });
this._loadingService.stop();
});
} else {