Fix for derive.balances.account (instances check) (#5098)
This commit is contained in:
@@ -158,7 +158,7 @@ export function account (instanceId: string, api: DeriveApi): (address: AccountI
|
||||
(accountId
|
||||
? combineLatest([
|
||||
of(accountId),
|
||||
balanceInstances
|
||||
balanceInstances && (balanceInstances.length !== 1 || balanceInstances[0] !== 'balances')
|
||||
? queryBalancesAccount(api, accountId, balanceInstances)
|
||||
: isFunction(api.query.system?.account)
|
||||
? querySystemAccount(api, accountId)
|
||||
|
||||
Reference in New Issue
Block a user