Skip to content

Commit

Permalink
use 2 significant figures
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Gilgur <[email protected]>
  • Loading branch information
Anton Gilgur committed Jun 5, 2024
1 parent 8cdc59a commit 54be40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/duration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ import { formatDuration } from '../../v2';
* @param {number} props.durationMs - The number of seconds. DEPRECATED: The "Ms" suffix is incorrect, use props.durationS instead.
*/
export function Duration(props: {durationMs: number, durationS: number}) {
return <span>{formatDuration(props.durationMs || props.durationS)}</span>;
return <span>{formatDuration(props.durationMs || props.durationS, 2)}</span>;
}

0 comments on commit 54be40b

Please sign in to comment.