Répare la selection de période sur les simulateurs

fix #2019
pull/2027/head
Johan Girod 2022-02-21 18:29:22 +01:00
parent 15626375e4
commit b4c8cf6a3f
1 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,6 @@ export default function PeriodSwitch() {
const currentUnit = useSelector(targetUnitSelector)
const { t } = useTranslation()
const periods = [
{
label: t('Mensuel'),
@ -23,7 +22,7 @@ export default function PeriodSwitch() {
return (
<div>
<ToggleGroup
defaultValue={currentUnit}
value={currentUnit}
onChange={(unit: string) => dispatch(updateUnit(unit))}
>
{periods.map(({ label, unit }) => (