Skip to content

Commit 2a73de6

Browse files
authored
fix: No need to show ms in generation time when more than a minute has passed (#334)
no need to show ms in generation time when more than a minute has passed
1 parent fba972d commit 2a73de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/array/src/renderer/features/sessions/components/GeneratingIndicator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function formatDuration(ms: number): string {
99
const centiseconds = Math.floor((ms % 1000) / 10);
1010

1111
if (mins > 0) {
12-
return `${mins}m ${secs.toString().padStart(2, "0")}.${centiseconds.toString().padStart(2, "0")}s`;
12+
return `${mins}m ${secs.toString().padStart(2, "0")}s`;
1313
}
1414
return `${secs}.${centiseconds.toString().padStart(2, "0")}s`;
1515
}

0 commit comments

Comments
 (0)