Skip to content

Commit

Permalink
Merge pull request #145 from osu-tournament-rating/fix/leaderboard-pa…
Browse files Browse the repository at this point in the history
…rams

fix leaderboard params when changing page
  • Loading branch information
hburn7 authored Apr 1, 2024
2 parents ed4f877 + 1f48bdb commit abb9fe3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,9 @@ export async function paginationParamsToURL(params: {}) {
let string = `${index !== 0 ? '&' : ''}${key}=`;

params[key].forEach((value, index) => {
string += `${value}${index === 0 ? `&${key}=` : ''}`;
string += `${value}${
index < params[key].length - 1 ? `&${key}=` : ''
}`;
});

return (url += `${string}`);
Expand Down

0 comments on commit abb9fe3

Please sign in to comment.