From 9c98e2e094b6327f2d0d4fefa5af82dc830cd2b8 Mon Sep 17 00:00:00 2001 From: James Morris Date: Mon, 9 May 2022 17:11:35 +0100 Subject: [PATCH] Removed unneeded variables and functions based on pull request review refs: https://github.com/TryGhost/Team/issues/1594 --- ghost/admin/app/components/dashboard/v5/charts/anchor.js | 5 ----- ghost/admin/app/components/dashboard/v5/charts/overview.js | 4 ---- 2 files changed, 9 deletions(-) diff --git a/ghost/admin/app/components/dashboard/v5/charts/anchor.js b/ghost/admin/app/components/dashboard/v5/charts/anchor.js index 895b6efa03..2d028573df 100644 --- a/ghost/admin/app/components/dashboard/v5/charts/anchor.js +++ b/ghost/admin/app/components/dashboard/v5/charts/anchor.js @@ -65,7 +65,6 @@ export default class Anchor extends Component { @service dashboardStats; @service feature; @tracked chartDisplay = 'total'; - @tracked totalMembersOverall = null; daysOptions = DAYS_OPTIONS; displayOptions = DISPLAY_OPTIONS; @@ -117,10 +116,6 @@ export default class Anchor extends Component { return this.dashboardStats.memberCounts && this.totalMembers === 0; } - get isTotalMembersMoreThanZero() { - return this.dashboardStats.memberCounts && this.totalMembers > 0; - } - get paidMembers() { return this.dashboardStats.memberCounts?.paid ?? 0; } diff --git a/ghost/admin/app/components/dashboard/v5/charts/overview.js b/ghost/admin/app/components/dashboard/v5/charts/overview.js index 4cd6930d94..ef11bd7935 100644 --- a/ghost/admin/app/components/dashboard/v5/charts/overview.js +++ b/ghost/admin/app/components/dashboard/v5/charts/overview.js @@ -20,10 +20,6 @@ export default class Overview extends Component { return this.dashboardStats.memberCounts?.total ?? 0; } - get isTotalMembersZero() { - return this.dashboardStats.memberCounts && this.totalMembers === 0; - } - get isTotalMembersMoreThanZero() { return this.dashboardStats.memberCounts && this.totalMembers > 0; }