From c1c6324f9b8d501a3eed980f146738d2461f208c Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Tue, 3 Oct 2023 19:17:58 +0200 Subject: [PATCH] Reorder --- .../create-or-update-account-dialog.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();