From b139793da86e3e3a463479073b759d80fec463e2 Mon Sep 17 00:00:00 2001 From: highvolt-dev Date: Sun, 23 Jan 2022 17:40:41 -0500 Subject: [PATCH] fix warnings --- src/App.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.js b/src/App.js index debbe25..1a28edc 100644 --- a/src/App.js +++ b/src/App.js @@ -25,7 +25,7 @@ function useInterval(callback, delay) { } function App() { - const [model, setModel] = useState(null); + const [model, setModel] = useState(''); const [data, setData] = useState([]); const [login, setLogin] = useState({username: 'admin', password: '', error: ''}); const [loggedIn, setLoggedIn] = useState(false); @@ -281,10 +281,10 @@ function App() { {model ? <>Selected: {model} : - {setModel(e.target.value)}}> - - + + }