Skip to content

Commit

Permalink
fix(landing): correct sort for followersCount streamers
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Dec 3, 2023
1 parent ab4a5e9 commit a7a1673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/landing/src/components/home/Streamers.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const streamersWithFollowers: GetTwirStreamersResponse_Streamer[][] = [];
try {
const twitchStreamersReq = await unProtectedClient.getStatsTwirStreamers({});
const sortedStreamers = twitchStreamersReq.response.streamers.sort((a, b) => a.followersCount - b.followersCount);
const sortedStreamers = twitchStreamersReq.response.streamers.sort((a, b) => b.followersCount - a.followersCount);
streamersWithFollowers.push(...chunk(sortedStreamers, 3))
// streamersWithFollowers.push(...chunk(Array.from({ length: 500 }).map(() => sortedStreamers.at(0)!), 3));
} catch (e) {
Expand Down

0 comments on commit a7a1673

Please sign in to comment.