Skip to content

Commit

Permalink
fix event row no year showing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
antiantivirus committed Oct 8, 2024
1 parent d0b7ad5 commit a21132c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/eventRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ function EventDate(event, expanded = false) {
<span>
{isSameDay ? (
<span>
<Date dateString={event.date} formatString="DD MMM" />
<Date
dateString={event.date}
formatString={expanded ? "DD MMM" : "DD MMM YYYY"}
/>
{expanded && (
<>
{", "}
Expand Down

0 comments on commit a21132c

Please sign in to comment.