Skip to content

Commit

Permalink
Update src/hooks/errors/useHasGlobalError.ts
Browse files Browse the repository at this point in the history
Co-authored-by: tate <[email protected]>
  • Loading branch information
talentlessguy and TateB authored Jan 24, 2024
1 parent 36c2caa commit b635c3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/errors/useHasGlobalError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export const useHasGlobalError = (includeLatency = false) => {
const { error, slow } = useHasSubgraphSyncErrors()
const subgraphDebug = useReadLocalStorage<string>('subgraph-debug')

if (includeLatency || subgraphDebug === 'ENSJSSubgraphLatency') {
if (includeLatency) {
if (subgraphDebug === 'ENSJSSubgraphLatency') return true
return Boolean(error || slow)
}

Expand Down

0 comments on commit b635c3f

Please sign in to comment.