From 23b5786c1b9d30790de459bcdbf4b013b7f57713 Mon Sep 17 00:00:00 2001 From: Fisico Date: Tue, 26 Dec 2023 20:26:39 +0100 Subject: [PATCH] fixed device view --- src/views/Devices.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/Devices.js b/src/views/Devices.js index b86323f..f9faa37 100644 --- a/src/views/Devices.js +++ b/src/views/Devices.js @@ -17,7 +17,7 @@ const Devices = ({ HOST_IP, API_KEY }) => { }) .catch((error) => { console.error(error); - toast.error(`Error: ${error.message}`); + toast.error(`Error occurred: ${error.message}`, { duration: 5000 }); }); } }; @@ -40,6 +40,8 @@ const Devices = ({ HOST_IP, API_KEY }) => { key={id} HOST_IP={HOST_IP} api_key={API_KEY} + id={id} + device={device} /> ))}