diff --git a/apps/web/src/app/admin-console/organizations/members/members.component.ts b/apps/web/src/app/admin-console/organizations/members/members.component.ts index 061f7908c38..1c51ec50651 100644 --- a/apps/web/src/app/admin-console/organizations/members/members.component.ts +++ b/apps/web/src/app/admin-console/organizations/members/members.component.ts @@ -761,20 +761,22 @@ export class MembersComponent extends BaseMembersComponent if (result === AccountRecoveryDialogResultTypes.Ok) { await this.load(); } - } else { - const dialogRef = ResetPasswordComponent.open(this.dialogService, { - data: { - name: this.userNamePipe.transform(user), - email: user != null ? user.email : null, - organizationId: this.organization.id, - id: user != null ? user.id : null, - }, - }); - const result = await lastValueFrom(dialogRef.closed); - if (result === ResetPasswordDialogResult.Ok) { - await this.load(); - } + return; + } + + const dialogRef = ResetPasswordComponent.open(this.dialogService, { + data: { + name: this.userNamePipe.transform(user), + email: user != null ? user.email : null, + organizationId: this.organization.id, + id: user != null ? user.id : null, + }, + }); + + const result = await lastValueFrom(dialogRef.closed); + if (result === ResetPasswordDialogResult.Ok) { + await this.load(); } }