Skip to content

Commit

Permalink
Merge pull request #88 from Andrews0406/patch-1
Browse files Browse the repository at this point in the history
Update Header.tsx - Fixing year.at(0) error on selecting the year in the Calender
  • Loading branch information
farhoudshapouran authored Jun 3, 2024
2 parents 44199ca + 7a1c3a7 commit 8a3aaab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const Header = ({ buttonPrevIcon, buttonNextIcon }: HeaderProps) => {
<View style={[styles.textContainer, theme?.headerTextContainerStyle]}>
<Text style={[styles.text, theme?.headerTextStyle]}>
{calendarView === 'year'
? `${years.at(0)} - ${years.at(-1)}`
? `${years[0]} - ${years[years.length-1]}`

Check failure on line 107 in src/components/Header.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `-` with `·-·`
: dayjs(currentDate).format('YYYY')}
</Text>
</View>
Expand Down

0 comments on commit 8a3aaab

Please sign in to comment.