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:
parent
d787d5f8bf
commit
418f6e9cbe
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue