File tree Expand file tree Collapse file tree
src/renderer/components/Dashboard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -292,7 +292,6 @@ function StatsDashboard({ onClose }: StatsDashboardProps): React.JSX.Element {
292292 const spanYears = range === 'all' || range === '1y'
293293 ? ( oldestSeen . slice ( 0 , 4 ) !== today . slice ( 0 , 4 ) )
294294 : false ;
295- const showMonthlyBars = range !== '90d' ;
296295
297296 // Aggregate lifetime totals across the loaded range
298297 const totals = useMemo ( ( ) => {
@@ -485,7 +484,7 @@ function StatsDashboard({ onClose }: StatsDashboardProps): React.JSX.Element {
485484 />
486485 }
487486 monthly = {
488- showMonthlyBars && monthlyCommits . length > 0 ? (
487+ monthlyCommits . length > 0 ? (
489488 < MonthlyBarChart
490489 entries = { monthlyCommits }
491490 formatTooltipValue = { ( v ) => `${ formatNumber ( v ) } commits` }
@@ -510,7 +509,7 @@ function StatsDashboard({ onClose }: StatsDashboardProps): React.JSX.Element {
510509 />
511510 }
512511 monthly = {
513- showMonthlyBars && monthlyCost . length > 0 ? (
512+ monthlyCost . length > 0 ? (
514513 < MonthlyBarChart
515514 entries = { monthlyCost }
516515 formatTooltipValue = { ( v ) => formatCost ( v ) }
@@ -535,7 +534,7 @@ function StatsDashboard({ onClose }: StatsDashboardProps): React.JSX.Element {
535534 />
536535 }
537536 monthly = {
538- showMonthlyBars && monthlyInputMsgs . length > 0 ? (
537+ monthlyInputMsgs . length > 0 ? (
539538 < MonthlyBarChart
540539 entries = { monthlyInputMsgs }
541540 formatTooltipValue = { ( v ) => `${ formatNumber ( v ) } prompts` }
You can’t perform that action at this time.
0 commit comments