From 5f7a33efe5547c0714131395d50b3e33d65525ab Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 16 Jan 2017 12:02:32 -0500 Subject: [PATCH] FIX: [object Object] when hovering over view count --- app/assets/javascripts/discourse/helpers/application.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/helpers/application.js.es6 b/app/assets/javascripts/discourse/helpers/application.js.es6 index 455a2b9fb9d..17f37e94557 100644 --- a/app/assets/javascripts/discourse/helpers/application.js.es6 +++ b/app/assets/javascripts/discourse/helpers/application.js.es6 @@ -13,7 +13,7 @@ registerUnbound('number', (orig, params) => { let title = I18n.toNumber(orig, { precision: 0 }); if (params.numberKey) { - title = I18n.t(params.numberKey, { number: title }); + title = I18n.t(params.numberKey, { number: title, count: parseInt(title) }); } let classNames = 'number';