From 30c95ba258a03d2e304ac69cb7f21a73138d1e61 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 25 May 2021 18:24:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20undefined=20limit=20and=20?= =?UTF-8?q?windowsize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nest_frontend/components/interactive/BoxAlertCreate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nest_frontend/components/interactive/BoxAlertCreate.js b/nest_frontend/components/interactive/BoxAlertCreate.js index c399c14..a90ad04 100644 --- a/nest_frontend/components/interactive/BoxAlertCreate.js +++ b/nest_frontend/components/interactive/BoxAlertCreate.js @@ -69,7 +69,7 @@ export default function BoxAlertCreate( type={"number"} icon={faThermometerThreeQuarters} value={limit} - onChange={e => setLimit(e.target.limit)} + onChange={e => setLimit(e.target.value)} /> @@ -78,7 +78,7 @@ export default function BoxAlertCreate( type={"number"} icon={faStopwatch} value={windowSize} - onChange={e => setWindowSize(e.target.limit)} + onChange={e => setWindowSize(e.target.value)} /> {error ?