fixed check device status
This commit is contained in:
parent
022f1c3d38
commit
1ba82f2c34
|
@ -141,11 +141,11 @@ export default function (props: JSX.HTMLAttributes<HTMLDivElement>) {
|
|||
// .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!");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue