diff --git a/src/App.js b/src/App.js index 3cf06d8..d6aa6e6 100755 --- a/src/App.js +++ b/src/App.js @@ -120,6 +120,11 @@ function SorterApp(){ function submitForm(){ if (item1.length>0&&item2.length>0&&item3.length>0&&item4.length>0&&item5.length>0&& item1_2.length>0&&item2_2.length>0&&item3_2.length>0&&item4_2.length>0&&item5_2.length>0){ + setResult1(NONE) + setResult2(NONE) + setResult3(NONE) + setResult4(NONE) + setResult5(NONE) setChecking(true); for (let i of [ @@ -164,24 +169,27 @@ function SorterApp(){ itemData2={...results} if (itemData1.ItemSortCategory.ID{console.log(err);}) - .finally(()=>{setChecking(false)}) + .catch((err)=>{console.log(err);setChecking(false)}) } //axios.get(encodeURI("https://xivapi.com/search?string="+i)) }