Skip to content

Commit

Permalink
fix: sort ratings column correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed May 21, 2024
1 parent 2728daf commit 39b6ef2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions output/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download
if (!data) {
return 0;
}
if (type === 'display') {
return data.reduce((x, y) => x + y, 0);
}
return data;
return data.reduce((x, y) => x + y, 0);
}
},
],
Expand Down

0 comments on commit 39b6ef2

Please sign in to comment.