diff --git a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts index cea927be9..3babc14bc 100644 --- a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts +++ b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts @@ -51,6 +51,10 @@ export class CreateOrUpdateAccountDialog implements OnDestroy { }); } + public onCancel() { + this.dialogRef.close(); + } + public onSubmit() { const account: CreateAccountDto | UpdateAccountDto = { balance: this.accountForm.controls['balance'].value, @@ -71,10 +75,6 @@ export class CreateOrUpdateAccountDialog implements OnDestroy { this.dialogRef.close({ account }); } - public onCancel() { - this.dialogRef.close(); - } - public ngOnDestroy() { this.unsubscribeSubject.next(); this.unsubscribeSubject.complete();