Skip to content

Commit

Permalink
fix: Initial load
Browse files Browse the repository at this point in the history
  • Loading branch information
memoyil committed Nov 4, 2024
1 parent 2c809cd commit 6f45e7a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apps/web/src/views/GaugesVoting/hooks/useGaugesFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,12 @@ const useFilteredGauges = ({ filter, fullGauges, searchText, sort, setSort }) =>
}),
)
results = updatedResults.filter(Boolean) // Remove nulls

const sorter = getSorter(sort)
setFilteredGauges(results.sort(sorter))
} catch (error) {
// eslint-disable-next-line no-empty
return
}
}
const sorter = getSorter(sort)
setFilteredGauges(results.sort(sorter))
}

const controller = new AbortController()
Expand Down

0 comments on commit 6f45e7a

Please sign in to comment.