Skip to content

Commit

Permalink
Remove useless isFetched calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed May 21, 2024
1 parent 8fac1b6 commit 08356dd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/oasis-nexus/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ export const useGetRuntimeAccountsAddresses = (
return {
isLoading: !!targets?.length && queries.some(query => query.isLoading && query.fetchStatus !== 'idle'),
isError: queries.some(query => query.isError) || targets?.length > MAX_LOADED_ADDRESSES,
isFetched: !queries.some(query => !query.isFetched),
data: queries.map(query => query.data?.data).filter(account => !!account) as RuntimeAccount[],
}
}
Expand All @@ -495,7 +494,6 @@ export const useGetConsensusAccountsAddresses = (
return {
isLoading: !!targets?.length && queries.some(query => query.isLoading && query.fetchStatus !== 'idle'),
isError: queries.some(query => query.isError) || targets?.length > MAX_LOADED_ADDRESSES,
isFetched: !queries.some(query => !query.isFetched),
data: queries.map(query => query.data?.data).filter(account => !!account) as generated.Account[],
}
}
Expand Down

0 comments on commit 08356dd

Please sign in to comment.