Skip to content

Commit

Permalink
chore: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
turban committed Sep 29, 2023
1 parent 71ea5e8 commit 5b79f49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/periods/PeriodSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const PeriodSelect = ({
if (!period && periods) {
onChange(filterFuturePeriods(periods)[0] || periods[0])
}
}, [period, periods, year, onChange])
}, [period, periods, onChange])

// Keep the same period position when year changes
useEffect(() => {
Expand All @@ -83,7 +83,7 @@ const PeriodSelect = ({
onChange(newPeriod)
}
}
}, [year, prevYear, periods, prevPeriodIndex])
}, [year, prevYear, periods, prevPeriodIndex, onChange])

if (!periods) {
return null
Expand Down

0 comments on commit 5b79f49

Please sign in to comment.