From 5b79f49535160d5f2703fbcfd746a7bd97a5696d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Sandvik?= Date: Fri, 29 Sep 2023 17:09:10 +0200 Subject: [PATCH] chore: lint fixes --- src/components/periods/PeriodSelect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/periods/PeriodSelect.js b/src/components/periods/PeriodSelect.js index 048efda00..671387b20 100644 --- a/src/components/periods/PeriodSelect.js +++ b/src/components/periods/PeriodSelect.js @@ -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(() => { @@ -83,7 +83,7 @@ const PeriodSelect = ({ onChange(newPeriod) } } - }, [year, prevYear, periods, prevPeriodIndex]) + }, [year, prevYear, periods, prevPeriodIndex, onChange]) if (!periods) { return null