Skip to content

Commit 3a6df93

Browse files
[Fix 🐛] update month display logic in Calendar component
1 parent 766ad82 commit 3a6df93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Calendar/Months.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const Months = (props: Props) => {
3030
}}
3131
active={currentMonth === item}
3232
>
33-
{dateFormat(new Date(`2022-${item}-01`), "MMM", i18n)}
33+
{dateFormat(new Date(2022, item - 1, 1), "MMM", i18n)}
3434
</RoundedButton>
3535
))}
3636
</div>

0 commit comments

Comments
 (0)