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!"); + } } };