diff --git a/app/assets/javascripts/discourse/lib/formatter.js b/app/assets/javascripts/discourse/lib/formatter.js index 086ad750789..f2063e3786f 100644 --- a/app/assets/javascripts/discourse/lib/formatter.js +++ b/app/assets/javascripts/discourse/lib/formatter.js @@ -261,12 +261,12 @@ var number = function(val) { val = parseInt(val, 10); if (isNaN(val)) val = 0; - if (val > 999) { - return (val / 1000).toFixed(1) + "K"; - } if (val > 999999) { return (val / 1000000).toFixed(1) + "M"; } + if (val > 999) { + return (val / 1000).toFixed(1) + "K"; + } return val.toString(); };