Skip to content

Commit

Permalink
replaced null comparison for isEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Apr 23, 2024
1 parent 7de8090 commit 8f17005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/polkadot/fellows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class PolkadotFellows implements TeamApi {
this.logger.debug(`Fetching identity of '${fellow.address}', rank: ${fellow.rank}`);
const identityQuery = await api.query.identity.identityOf(fellow.address);
// If the identity is null, we check if there is a super identity.
if (identityQuery.toHuman() == null) {
if (identityQuery.isEmpty) {
this.logger.debug("Identity is null. Checking for super identity");
const superIdentity = (await api.query.identity.superOf(fellow.address)).toHuman() as
| [string, { Raw: string }]
Expand Down

0 comments on commit 8f17005

Please sign in to comment.