diff --git a/src/renderer/components/report/sections/CostSection.tsx b/src/renderer/components/report/sections/CostSection.tsx
index 1a5408ba..c1fdd2e0 100644
--- a/src/renderer/components/report/sections/CostSection.tsx
+++ b/src/renderer/components/report/sections/CostSection.tsx
@@ -139,7 +139,13 @@ export const CostSection = ({
Per Commit
- total cost {'\u00F7'} {commitCount} commit{commitCount !== 1 ? 's' : ''}
+ {commitCount > 0 ? (
+ <>
+ total cost {'\u00F7'} {commitCount} commit{commitCount !== 1 ? 's' : ''}
+ >
+ ) : (
+ 'no commits'
+ )}
@@ -156,8 +162,14 @@ export const CostSection = ({
Per Line Changed
- total cost {'\u00F7'} {linesChanged.toLocaleString()} line
- {linesChanged !== 1 ? 's' : ''}
+ {linesChanged > 0 ? (
+ <>
+ total cost {'\u00F7'} {linesChanged.toLocaleString()} line
+ {linesChanged !== 1 ? 's' : ''}
+ >
+ ) : (
+ 'no lines changed'
+ )}