Skip to content

Commit

Permalink
Fix hnt emissions graph edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
mbthiery committed Oct 25, 2023
1 parent fa41b8e commit 5e0c2f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/stats/components/HntEmissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ export const HntEmissions = async () => {
const hntEmissionsRows = Object.keys(hntEmissionsData)
.map((date) => hntEmissionsData[date])
.reverse()
/*
Sometimes one query will run before emissions are actually emitted causing
non-complete rows. Filtering these rows out. When this happens we'll have 28
instead of 30.
*/
.filter((row) => !!row.iot && !!row.mobile && !row.total)

return (
<div className="mt-2">
Expand Down

0 comments on commit 5e0c2f5

Please sign in to comment.