From 53406cd6d69542bb0624091d422bf1b84b0b2add Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sun, 7 May 2023 04:35:26 -0500 Subject: [PATCH] Reset confirmation states when re-evaluating sort items. Also button refresh occurs at the end of errors and returns --- src/App.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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)) }