Skip to content

Commit 994a1a8

Browse files
authored
Merge pull request #278 from leonelhenriquez/fix/months-buttons
[Fix 🐛] update month display logic in Calendar component
2 parents 766ad82 + 3a6df93 commit 994a1a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Calendar/Months.tsx

+1-1
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)