Skip to content

Commit

Permalink
🐛 fix(postHeader): correct singular display of reading time
Browse files Browse the repository at this point in the history
Fixed the display logic for reading time in the PostHeader component. The reading time is now correctly displayed in singular form when it is exactly one minute, improving the accuracy of the information shown to the user.
  • Loading branch information
allbertuu authored Aug 23, 2024
1 parent a9bdf51 commit 81e1bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PostHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const PostHeader: React.FC = () => {
/> */}

<GitHubInfo
info={`Leitura de aproximadamente ${readingTimeInMinutes} minutos ☕️`}
info={`Leitura de aproximadamente ${readingTimeInMinutes} ${readingTimeInMinutes === 1 ? 'minuto' : 'minutos'} ☕️`}
icon={
<TimerIcon
size={'1.2rem'}
Expand Down

0 comments on commit 81e1bb6

Please sign in to comment.