Skip to content

Commit 613a4e1

Browse files
authored
fix(usage): show window without daily data
Generated-By: PostHog Code Task-Id: 35976f6d-329c-4b2e-9e38-cdeec8968ea1
1 parent 72c36a4 commit 613a4e1

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

packages/ui/src/features/usage/components/SpendKpiStrip.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ interface SpendKpiStripProps {
3434
export function SpendKpiStrip({ data, filledDays }: SpendKpiStripProps) {
3535
const theme = useChartTheme();
3636
const { summary } = data;
37-
const codeShare =
38-
summary.total_cost_usd > 0
39-
? Math.round((summary.scoped_cost_usd / summary.total_cost_usd) * 100)
40-
: 0;
4137
const labels = filledDays?.map((d) => spendDayLabel(d.day));
4238
const costSeries = filledDays?.map((d) => Math.max(0, d.cost_usd));
4339
const eventSeries = filledDays?.map((d) => d.event_count);
@@ -65,7 +61,6 @@ export function SpendKpiStrip({ data, filledDays }: SpendKpiStripProps) {
6561
theme={theme}
6662
formatValue={formatUsd}
6763
change={null}
68-
subtitle={costSeries ? undefined : `${codeShare}% of total`}
6964
restingSubtitle={windowLabel}
7065
sparklineHeight={28}
7166
/>

0 commit comments

Comments
 (0)