Skip to content

Commit

Permalink
feat: Still show coverage charts if we have one data point (#3490)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvin-codecov authored Nov 14, 2024
1 parent c6705f1 commit fe14916
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/AnalyticsPage/Chart/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function Chart({ startDate, endDate, repositories }: ChartProps) {
)
}

if (coverage.length < 2) {
if (coverage.length < 1) {
return (
<div className="flex max-h-[260px] min-h-[200px] w-full items-center justify-center">
<p>Not enough coverage data to display chart.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function CoverageChart() {
)
}

if (data?.measurements.length < 2) {
if (data?.measurements.length < 1) {
return (
<div className="flex min-h-[250px] items-center justify-center xl:min-h-[380px]">
<p className="text-center">
Expand Down

0 comments on commit fe14916

Please sign in to comment.