Skip to content

Commit

Permalink
front: fix noData message in empty scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainValls committed Nov 23, 2023
1 parent ed6a693 commit 12f2a16
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function SimulationResults({
isDisplayed,
collapsedTimetable,
}: SimulationResultsProps) {
const { t } = useTranslation('operationalStudies/scenario');
const { t } = useTranslation('simulation');
const dispatch = useDispatch();

const { chart } = useSelector(getOsrdSimulation);
Expand Down Expand Up @@ -107,7 +107,7 @@ export default function SimulationResults({
}, [extViewport]);

return simulation.trains.length === 0 && !isUpdating ? (
<h1 className="text-center mt-5">{t('simulation:noData')}</h1>
<h1 className="text-center mt-5">{t('noData')}</h1>
) : (
<div className="simulation-results">
{/* SIMULATION : STICKY BAR */}
Expand Down

0 comments on commit 12f2a16

Please sign in to comment.