mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 20:40:48 +08:00
fixed a ui bug when updating quote ratings
This commit is contained in:
parent
917c77f035
commit
656cbff550
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ async function submit() {
|
|||
let diff = rating - oldRating;
|
||||
quoteRatings[currentQuote.language][currentQuote.id] = rating;
|
||||
quoteStats = {
|
||||
ratings: quoteStats.ratings + 1,
|
||||
ratings: quoteStats.ratings,
|
||||
totalRating: isNaN(quoteStats.totalRating)
|
||||
? 0
|
||||
: quoteStats.totalRating + diff,
|
||||
|
|
Loading…
Reference in a new issue