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)}}> - - + + }