Skip to content

Commit

Permalink
fix(result): words history being stuck on the same words
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Sep 28, 2023
1 parent fcaf0d1 commit 47e10de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/ts/test/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/ts/test/test-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>`
);
Expand Down

0 comments on commit 47e10de

Please sign in to comment.