mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 23:20:25 +08:00
fixed account page not loading if filtered result number is below 10
This commit is contained in:
parent
0fb86901a3
commit
1e39a62fd6
1 changed files with 2 additions and 0 deletions
|
@ -394,6 +394,7 @@ function loadMoreLines(){
|
|||
if(filteredResults == [] || filteredResults.length == 0) return;
|
||||
for(let i = visibleTableLines; i < visibleTableLines+10; i++){
|
||||
result = filteredResults[i];
|
||||
if(result == undefined) continue;
|
||||
let withpunc = '';
|
||||
if (result.punctuation) {
|
||||
withpunc = '<br>punctuation';
|
||||
|
@ -415,6 +416,7 @@ function loadMoreLines(){
|
|||
<td>${moment(result.timestamp).format('DD MMM YYYY HH:mm')}</td>
|
||||
</tr>`);
|
||||
}
|
||||
visibleTableLines+=10;
|
||||
}
|
||||
|
||||
function refreshAccountPage() {
|
||||
|
|
Loading…
Reference in a new issue