Fix rank scrolling (#3187)

* Fix rank scrolling

* Add await
This commit is contained in:
Bruce Berrios 2022-06-21 16:44:54 -04:00 committed by GitHub
parent af34ccaa56
commit 4fa24c0bc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -522,7 +522,7 @@ async function requestMore(lb: LbKey, prepend = false): Promise<void> {
if (prepend && !limitVal) {
limitVal = leaderboardSingleLimit - 1;
}
fillTable(lb, limitVal);
await fillTable(lb, limitVal);
hideLoader(lb);
requesting[lb] = false;
}
@ -554,7 +554,7 @@ async function requestNew(lb: LbKey, skip: number): Promise<void> {
return;
}
currentData[lb] = data;
fillTable(lb);
await fillTable(lb);
hideLoader(lb);
}