diff --git a/backend/api/controllers/quote-ratings.js b/backend/api/controllers/quote-ratings.js index 4dbca0525..15ba0b433 100644 --- a/backend/api/controllers/quote-ratings.js +++ b/backend/api/controllers/quote-ratings.js @@ -21,7 +21,7 @@ class QuoteRatingsController { if (!user) { throw new MonkeyError(401, "User not found."); } - const quoteRatings = user.quoteRatings; + let quoteRatings = user.quoteRatings; if (quoteRatings === undefined) quoteRatings = {}; if (quoteRatings[language] === undefined) quoteRatings[language] = {};