Skip to content

Commit

Permalink
fix(leaderboards): soft lock after running out of data
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Sep 4, 2023
1 parent d39cfd1 commit eb995b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/ts/elements/leaderboards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ async function requestMore(lb: LbKey, prepend = false): Promise<void> {

if (response.status !== 200 || data.length === 0) {
hideLoader(lb);
requesting[lb] = false;
return;
}
if (prepend) {
Expand Down

0 comments on commit eb995b7

Please sign in to comment.