From 6ba0ae72e751abbf050abae5fe1cc4bd6d14f668 Mon Sep 17 00:00:00 2001 From: Muhammad Izza Alfiansyah Date: Mon, 8 Jul 2024 18:31:47 +0700 Subject: [PATCH] redeploy --- website/src/App.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website/src/App.tsx b/website/src/App.tsx index bac072e..ae8f421 100644 --- a/website/src/App.tsx +++ b/website/src/App.tsx @@ -142,11 +142,11 @@ export default function (props: JSX.HTMLAttributes) { // .order("created_time", { ascending: false }) // .limit(1); - // if (lastData1![0] == lastData2![0]) { - // alert("Device offline!"); - // } else if (lastData1![0].created_time == lastData2![0].created_time) { - // alert("Device offline!"); - // } + if (lastData1![0] == lastData2![0]) { + alert("Device offline!"); + } else if (lastData1![0].created_time == lastData2![0].created_time) { + alert("Device offline!"); + } await checkStatusDevice(); } @@ -160,7 +160,7 @@ export default function (props: JSX.HTMLAttributes) { if (!item.running) { if (location.pathname != "/") { - // navigate("/"); + navigate("/"); } } else { setCanNavigate(true);