0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Updated mrr stats data on dashboard

refs https://github.com/TryGhost/Team/issues/469
refs 6594741c11

- Updates mrr stats data on dashboard using updated object response
This commit is contained in:
Rish 2021-03-05 16:41:08 +05:30
parent d787d5f8bf
commit 418f6e9cbe

View file

@ -71,8 +71,8 @@ export default class DashboardController extends Controller {
this.mrrStatsLoading = true; this.mrrStatsLoading = true;
this.membersStats.fetchMRR().then((stats) => { this.membersStats.fetchMRR().then((stats) => {
this.mrrStatsLoading = false; this.mrrStatsLoading = false;
const statsData = stats.data;
let currencyStats = stats[0] || { let currencyStats = statsData[0] || {
data: [], data: [],
currency: 'usd' currency: 'usd'
}; };