From 55d902b71ad0212846c75bb7a5c2b41be0292ec7 Mon Sep 17 00:00:00 2001 From: MrTimscampi Date: Sat, 8 Feb 2020 23:37:49 +0100 Subject: [PATCH] Force ratings to 1 decimal place --- src/components/mediainfo/mediainfo.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/mediainfo/mediainfo.js b/src/components/mediainfo/mediainfo.js index 8aaad95056..e4375b742a 100644 --- a/src/components/mediainfo/mediainfo.js +++ b/src/components/mediainfo/mediainfo.js @@ -385,16 +385,13 @@ define(['datetime', 'globalize', 'appRouter', 'itemHelper', 'indicators', 'mater } function getStarIconsHtml(item) { - var html = ''; - var rating = item.CommunityRating; - - if (rating) { + if (item.CommunityRating) { html += '
'; html += 'star'; - html += rating; + html += item.CommunityRating.toFixed(1); html += '
'; }