diff --git a/src/App.js b/src/App.js index ec839a6..6f6ee3f 100644 --- a/src/App.js +++ b/src/App.js @@ -38,7 +38,7 @@ function App() { //setAnimal(current => [...current, ...arr]); //emptyZoo = false; //setAnimal(["Lev", "Lachtan", "Varan", "Slon"]); - if (newAnimal != "") { + if (newAnimal !== "") { setAnimal([...animal, newAnimal]); console.log("pridal jsi " + newAnimal); setNewAnimal("");