Skip to content

Commit

Permalink
front: fix no data message when no train in timetable in opstudies
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainValls committed Feb 28, 2024
1 parent 335e7be commit 76cd9ec
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ export default function SimulationResults({
}
}, [selectedTrain]);

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

0 comments on commit 76cd9ec

Please sign in to comment.