From 1ba82f2c34c4be40faaeec4aea52e91106fa864b Mon Sep 17 00:00:00 2001 From: Muhammad Izza Alfiansyah Date: Mon, 8 Jul 2024 23:34:12 +0700 Subject: [PATCH] fixed check device status --- website/src/App.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/src/App.tsx b/website/src/App.tsx index 1bb02ea..3e3829c 100644 --- a/website/src/App.tsx +++ b/website/src/App.tsx @@ -141,11 +141,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!"); + } } };