refactor: clean error message in SimulateurOrAssistantPage

pull/2899/head
Marie Destandau 2024-02-09 11:59:21 +01:00 committed by Johan Girod
parent 4ebbf89658
commit 01e66129f8
1 changed files with 2 additions and 2 deletions

View File

@ -23,9 +23,9 @@ import { TrackChapter } from './ATInternetTracking'
export default function SimulateurOrAssistantPage() {
const { currentSimulatorData } = useCurrentSimulatorData()
const { pathname, search } = useLocation()
const { pathname } = useLocation()
if (!currentSimulatorData) {
throw new Error(`No simulator found with url: ${pathname}?${search}`)
throw new Error(`No simulator found with url: ${pathname}`)
}
const {
meta,