From 815628c5eef21595b0e72e93c973e8fe76dd06e3 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Thu, 31 Jan 2019 02:25:05 -0500 Subject: [PATCH] dashboard-statistics.js: namespace numberify with global --- frontend/js/dashboard-statistics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/js/dashboard-statistics.js b/frontend/js/dashboard-statistics.js index 58a00cb..9f76903 100644 --- a/frontend/js/dashboard-statistics.js +++ b/frontend/js/dashboard-statistics.js @@ -98,10 +98,10 @@ series: [comments], }, options); - data.domains[data.cd].viewsLast30Days = numberify(views.reduce(function(a, b) { + data.domains[data.cd].viewsLast30Days = global.numberify(views.reduce(function(a, b) { return a + b; }, 0)); - data.domains[data.cd].commentsLast30Days = numberify(comments.reduce(function(a, b) { + data.domains[data.cd].commentsLast30Days = global.numberify(comments.reduce(function(a, b) { return a + b; }, 0)); });