From 656cbff550173b9f4638f6c4710b76303dcebd0b Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 2 Feb 2022 21:06:14 +0100 Subject: [PATCH] fixed a ui bug when updating quote ratings --- src/js/popups/quote-rate-popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/popups/quote-rate-popup.js b/src/js/popups/quote-rate-popup.js index 5ff43d273..1ff8a1b87 100644 --- a/src/js/popups/quote-rate-popup.js +++ b/src/js/popups/quote-rate-popup.js @@ -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,