Skip to content

Commit

Permalink
Merge pull request #105 from helium/mbthiery/hnt-emissions-fix
Browse files Browse the repository at this point in the history
Fix hnt emissions graph edge case
  • Loading branch information
mbthiery authored Oct 25, 2023
2 parents fa41b8e + dd52dc0 commit a55c2d2
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 a55c2d2

Please sign in to comment.