mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 23:20:25 +08:00
fixed backwards results list and result graph loopback
This commit is contained in:
parent
7c6dc9405f
commit
b4145f2182
2 changed files with 2 additions and 3 deletions
|
@ -666,7 +666,6 @@ export function update() {
|
|||
|
||||
totalWpm += result.wpm;
|
||||
});
|
||||
filteredResults.reverse();
|
||||
loadMoreLines();
|
||||
////////
|
||||
|
||||
|
|
|
@ -1722,7 +1722,7 @@ export function finish(difficultyFailed = false) {
|
|||
DB.getSnapshot() !== null &&
|
||||
DB.getSnapshot().results !== undefined
|
||||
) {
|
||||
DB.getSnapshot().results.push(completedEvent);
|
||||
DB.getSnapshot().results.unshift(completedEvent);
|
||||
if (DB.getSnapshot().globalStats.time == undefined) {
|
||||
DB.getSnapshot().globalStats.time =
|
||||
testtime +
|
||||
|
@ -1959,7 +1959,7 @@ export function finish(difficultyFailed = false) {
|
|||
font-size: 2rem;
|
||||
padding: 2rem 0;
|
||||
">Test completed</div>
|
||||
|
||||
|
||||
`);
|
||||
$("#middle #result .stats").remove();
|
||||
$("#middle #result .chart").remove();
|
||||
|
|
Loading…
Reference in a new issue