add optional chaining when accessing response.frontiers[account] of accounts_frontiers rpc
This commit is contained in:
parent
cd6d388e60
commit
56d4dbaf4d
1 changed files with 1 additions and 1 deletions
|
|
@ -754,7 +754,7 @@ export class WalletService {
|
|||
|
||||
walletAccount.balanceFiat = this.util.nano.rawToMnano(walletAccount.balance).times(fiatPrice).toNumber();
|
||||
|
||||
walletAccount.frontier = frontiers.frontiers[accountID] || null;
|
||||
walletAccount.frontier = frontiers.frontiers?.[accountID] || null;
|
||||
|
||||
walletBalance = walletBalance.plus(walletAccount.balance);
|
||||
walletPendingInclUnconfirmed = walletPendingInclUnconfirmed.plus(accountBalancePendingInclUnconfirmed);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue