diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 78f668f..2c4f753 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -104,7 +104,7 @@ const Header = ({ buttonPrevIcon, buttonNextIcon }: HeaderProps) => { {calendarView === 'year' - ? `${years.at(0)} - ${years.at(-1)}` + ? `${years[0]} - ${years[years.length-1]}` : dayjs(currentDate).format('YYYY')}