From a2879a9309208ae4b3e39ec222fde3c107308410 Mon Sep 17 00:00:00 2001 From: njord Date: Mon, 29 May 2023 21:10:17 +0200 Subject: [PATCH] load data --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("");