mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-31 20:41:46 +08:00
fix(result): words history being stuck on the same words
This commit is contained in:
parent
fcaf0d1da4
commit
47e10de46e
2 changed files with 2 additions and 1 deletions
|
|
@ -710,6 +710,7 @@ export async function update(
|
|||
).scales;
|
||||
resultAnnotation = [];
|
||||
result = Object.assign({}, res);
|
||||
$("#resultWordsHistory .words").empty();
|
||||
$("#result #resultWordsHistory").addClass("hidden");
|
||||
$("#retrySavingResultButton").addClass("hidden");
|
||||
$(".pageTest #result #rateQuoteButton .icon")
|
||||
|
|
|
|||
|
|
@ -1050,7 +1050,7 @@ export function toggleResultWords(noAnimation = false): void {
|
|||
if ($("#resultWordsHistory").stop(true, true).hasClass("hidden")) {
|
||||
//show
|
||||
|
||||
if (!$("#showWordHistoryButton").hasClass("loaded")) {
|
||||
if ($("#resultWordsHistory .words .word").length === 0) {
|
||||
$("#words").html(
|
||||
`<div class="preloader"><i class="fas fa-fw fa-spin fa-circle-notch"></i></div>`
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue