Skip to content

Commit 7d32c50

Browse files
committed
logic fix to include failing at undefined
1 parent bfe0896 commit 7d32c50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/components/CoveredAreaMap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const CoveredAreaMap: React.FC<CoveredAreaMapProps> = ({
108108
const routesJsonLoadingStatus = useSelector(
109109
selectGtfsDatasetRoutesLoadingStatus,
110110
);
111-
const hasNoRoutes = totalRoutes !== undefined && totalRoutes === 0;
111+
const hasNoRoutes = totalRoutes == undefined || totalRoutes === 0;
112112

113113
const getAndSetGeoJsonData = (urlToExtract: string): void => {
114114
setGeoJsonLoading(true);

0 commit comments

Comments
 (0)