From b7ed87c5af2809d1446f06e62cc28e692e175cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leandro=20Ant=C3=B4nio=20Farias=20Machado?= Date: Thu, 8 Jun 2023 11:32:06 -0300 Subject: [PATCH] chore(frontend): block access to offline devices --- frontend/src/sections/overview/overview-latest-orders.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/sections/overview/overview-latest-orders.js b/frontend/src/sections/overview/overview-latest-orders.js index 27229ea..f16c235 100644 --- a/frontend/src/sections/overview/overview-latest-orders.js +++ b/frontend/src/sections/overview/overview-latest-orders.js @@ -100,7 +100,12 @@ export const OverviewLatestOrders = (props) => { router.push("devices/"+order.SN)} + onClick={()=>{ + if (order.Status !== 2){ + router.push("devices/"+order.SN) + } + } + } >