This commit is contained in:
Rinat Arsaev 2023-04-11 13:48:49 +04:00 committed by GitHub
parent 77708832d8
commit 3d60afc0ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,9 @@ export class WalletsComponent implements OnInit {
@Memoize()
getBalance(walletId: string) {
return this.walletManagementService.Get(walletId, {}).pipe(
switchMap((wallet) => this.accounterService.GetAccountByID(Number(wallet.account.id))),
switchMap((wallet) =>
this.accounterService.GetAccountByID(Number(wallet.account.accounter_account_id))
),
catchError((err) => {
this.errorService.error(err);
return of({});