fixed check device status

This commit is contained in:
Muhammad Izza Alfiansyah 2024-07-08 23:34:12 +07:00
parent 022f1c3d38
commit 1ba82f2c34
1 changed files with 5 additions and 5 deletions

View File

@ -141,11 +141,11 @@ export default function (props: JSX.HTMLAttributes<HTMLDivElement>) {
// .order("created_time", { ascending: false }) // .order("created_time", { ascending: false })
// .limit(1); // .limit(1);
// if (lastData1![0] == lastData2![0]) { if (lastData1![0] == lastData2![0]) {
// alert("Device offline!"); alert("Device offline!");
// } else if (lastData1![0].created_time == lastData2![0].created_time) { } else if (lastData1![0].created_time == lastData2![0].created_time) {
// alert("Device offline!"); alert("Device offline!");
// } }
} }
}; };