diff --git a/packages/api-derive/src/accounts/identity.ts b/packages/api-derive/src/accounts/identity.ts index 2724d24e95..f77bf36eda 100644 --- a/packages/api-derive/src/accounts/identity.ts +++ b/packages/api-derive/src/accounts/identity.ts @@ -148,7 +148,7 @@ export function identity (instanceId: string, api: DeriveApi): (accountId?: Acco function getSubIdentities (identity: DeriveAccountRegistration, api: DeriveApi, accountId?: AccountId | Uint8Array | string): Observable { const targetAccount = identity.parent || accountId; - if (!targetAccount) { + if (!targetAccount || !api.query.identity) { // No valid accountId return the identity as-is return of(identity); }