From 8f59e4f15348d3fa0be13f6856207eacdd155a19 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 31 Mar 2025 20:27:35 +0100 Subject: [PATCH] [frontend]: Bus error handling --- frontend/src/App.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index ae4bdf8..09f6160 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -279,6 +279,11 @@ function App() { break; case "Bus": + if (item.busRouteAgencyName === "" || item.busRouteLongName === "" || item.busRouteShortName === "") { + display = false; + break; + } + display = item.latitude !== "0" && item.longitude !== "0" && (numberInputValue && userLocationAvailable