Skip to content

Commit 6cfa18a

Browse files
committed
maximumFractionDigits
1 parent 2dae497 commit 6cfa18a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/site/components/withMetaBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ const WithMetaBar: FC = () => {
2020
const lastUpdated = frontmatter.date
2121
? formatter.dateTime(new Date(frontmatter.date), DEFAULT_DATE_FORMAT)
2222
: undefined;
23-
const readingTimeText = formatter.number(Math.round(readingTime.minutes), {
23+
const readingTimeText = formatter.number(readingTime.minutes, {
2424
style: 'unit',
2525
unit: 'minute',
26+
maximumFractionDigits: 0,
2627
});
2728

2829
const usernames =

0 commit comments

Comments
 (0)