Skip to content

Commit

Permalink
fix: fixing type bug in Discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
tegefaulkes committed Sep 13, 2022
1 parent cc9920e commit 5647b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discovery/Discovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ class Discovery {
// Get our own auth identity id
const authIdentityIds = await provider.getAuthIdentityIds();
// If we don't have one then we can't request data so just skip
if (authIdentityIds === [] || authIdentityIds[0] == null) {
if (authIdentityIds.length === 0 || authIdentityIds[0] == null) {
return undefined;
}
const authIdentityId = authIdentityIds[0];
Expand Down

0 comments on commit 5647b39

Please sign in to comment.