diff --git a/apps/client/src/app/pages/accounts/accounts-page.component.ts b/apps/client/src/app/pages/accounts/accounts-page.component.ts index 18d5d1e2a..8c2e4ae7e 100644 --- a/apps/client/src/app/pages/accounts/accounts-page.component.ts +++ b/apps/client/src/app/pages/accounts/accounts-page.component.ts @@ -298,9 +298,15 @@ export class AccountsPageComponent implements OnDestroy, OnInit { console.log( `Transfer cash balance of ${balance} from account ${accountIdFrom} to account ${accountIdTo}` ); - } - this.router.navigate(['.'], { relativeTo: this.route }); + this.dataService.postTransferAccountBalance({ + accountIdFrom, + accountIdTo, + balance + }).pipe(takeUntil(this.unsubscribeSubject)).subscribe(() => { + this.router.navigate(['.'], { relativeTo: this.route }); + }); + } }); } }