diff --git a/apps/dashboard/src/App.tsx b/apps/dashboard/src/App.tsx index 2952e8a..100e87c 100644 --- a/apps/dashboard/src/App.tsx +++ b/apps/dashboard/src/App.tsx @@ -226,7 +226,24 @@ function TFLTile() { if (isLoadingTFL) { return ( -

Loading TfL

+

Loading tube status

+
+ ) + } + + if (errorTFL) { + return ( + +

Error loading from TfL

+

{errorTFL?.message}

+
+ ) + } + + if (!tflData) { + return ( + +

No TfL data available

) } @@ -236,7 +253,7 @@ function TFLTile() { decorations={false} className="gap-x-1 col-start-3 h-full row-start-1 col-span-2 row-span-1 grid grid-cols-[min-content_1fr] auto-rows-min overflow-y-auto" > - {tflData?.goodService.includes("Northern") && ( + {tflData.goodService.includes("Northern") && ( )} - {tflData?.disruptions.map((disruption) => ( + {tflData.disruptions.map((disruption) => (