diff --git a/src/front/index.js b/src/front/index.js index 2ca7618..870cba1 100644 --- a/src/front/index.js +++ b/src/front/index.js @@ -29,7 +29,9 @@ setInterval(() => { const timeToHTML = time => Math.ceil((time - Date.now()) / 1000); - const stopToHTML = stopId => network.stops[stopId].properties.name; + const stopToHTML = stopId => stopId in network.stops ? + network.stops[stopId].properties.name : + 'ArrĂȘt inconnu'; const passingsToHTML = passings => passings.map(([stopId, time]) => `