fix: 🐛 config artiste-auteur créée à partir du chemin courant

 Closes: #2965
pull/2983/head^2
Loïc Torres 2024-06-06 16:56:43 +02:00 committed by Jalil Arfaoui
parent 212dc3d6de
commit 984e30e51a
1 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,6 @@
import { useContext } from 'react'
import { Trans } from 'react-i18next'
import { useLocation } from 'react-router-dom'
import { Condition } from '@/components/EngineValue/Condition'
import PeriodSwitch from '@/components/PeriodSwitch'
@ -17,10 +18,8 @@ import useSimulationConfig from '@/hooks/useSimulationConfig'
import { configArtisteAuteur } from './simulationConfig'
export default function ArtisteAuteur() {
useSimulationConfig({
key: '/simulateurs/artiste-auteur',
config: configArtisteAuteur,
})
const { pathname } = useLocation()
useSimulationConfig({ key: pathname, config: configArtisteAuteur })
return (
<>