Skip to content

Commit 36fde88

Browse files
committed
Dashboard: Fix Active Users calculation in team and project analytics
1 parent a3b2f8f commit 36fde88

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/analytics/highlights-card.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ export function TeamHighlightsCard({
7676
: "activeUsers"
7777
}
7878
aggregateFn={(_data, key) => {
79-
if (key === "activeUsers") {
80-
return Math.max(...timeSeriesData.map((d) => d[key]));
81-
}
8279
return timeSeriesData.reduce((acc, curr) => acc + curr[key], 0);
8380
}}
8481
chartConfig={chartConfig}

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/overview/highlights-card.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ export function ProjectHighlightsCard(props: {
7070
: "activeUsers"
7171
}
7272
aggregateFn={(_data, key) => {
73-
if (key === "activeUsers") {
74-
return Math.max(...timeSeriesData.map((d) => d[key]));
75-
}
7673
return timeSeriesData.reduce((acc, curr) => acc + curr[key], 0);
7774
}}
7875
chartConfig={chartConfig}

0 commit comments

Comments
 (0)