From 002cc33d522749b15f1cda5f6ebba859e31f3adb Mon Sep 17 00:00:00 2001 From: Rish Date: Tue, 23 Feb 2021 02:12:12 +0530 Subject: [PATCH] Fixed currency in chart options refs https://github.com/TryGhost/Team/issues/469 Uses correct binding to setup currency for MRR charts in y axis ticks --- ghost/admin/app/components/gh-members-chart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/gh-members-chart.js b/ghost/admin/app/components/gh-members-chart.js index af68a17477..1f616caaef 100644 --- a/ghost/admin/app/components/gh-members-chart.js +++ b/ghost/admin/app/components/gh-members-chart.js @@ -247,7 +247,7 @@ export default Component.extend({ padding: 8, precision: 0, suggestedMin: 0, - callback: function (value) { + callback: (value) => { const currency = this.chartType === 'mrr' ? getSymbol(this.stats.currency) : ''; if (parseInt(value) >= 1000) { return currency + value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');