mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-17 14:19:40 +08:00
updating icon after submitting rating
This commit is contained in:
parent
3d479d5eb5
commit
4aae37413d
1 changed files with 2 additions and 0 deletions
|
|
@ -174,6 +174,8 @@ async function submit() {
|
|||
Math.round((quoteStats.totalRating / quoteStats.ratings) * 10) / 10
|
||||
).toFixed(1);
|
||||
$(".pageTest #result #rateQuoteButton .rating").text(quoteStats.average);
|
||||
$(".pageTest #result #rateQuoteButton .icon").removeClass("far");
|
||||
$(".pageTest #result #rateQuoteButton .icon").addClass("fas");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue