From 7088f8d1eef203e9d9d5fa87ffd95703ed84f846 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 30 Sep 2024 10:54:51 +0530 Subject: [PATCH] use host unreachable instead of authn. error --- src/Components/CameraFeed/CameraFeed.tsx | 13 +------------ src/Components/CameraFeed/FeedAlert.tsx | 4 +--- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/Components/CameraFeed/CameraFeed.tsx b/src/Components/CameraFeed/CameraFeed.tsx index 863a6bbac8a..70634ba863a 100644 --- a/src/Components/CameraFeed/CameraFeed.tsx +++ b/src/Components/CameraFeed/CameraFeed.tsx @@ -77,7 +77,7 @@ export default function CameraFeed(props: Props) { .operate({ type: "get_stream_token" }) .then(({ res, data }) => { if (res?.status != 200) { - setState("authentication_error"); + setState("host_unreachable"); return props.onStreamError?.(); } const result = data?.result as { token: string }; @@ -221,17 +221,6 @@ export default function CameraFeed(props: Props) { onResetClick={resetStream} /> ); - case "authentication_error": - return ( - - ); case "offline": return ( > = { zooming: "l-search", saving_preset: "l-save", host_unreachable: "l-exclamation-triangle", - authentication_error: "l-exclamation-triangle", }; export default function FeedAlert({ state }: Props) {