From 3193f7aeec006b0ff2c79e70c2b4244e3a25c5cf Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 15 Mar 2024 17:57:51 -0700 Subject: [PATCH] added missing variable. updated test button behavior on DigiKey --- Binner/Binner.Web/ClientApp/src/pages/Settings.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Binner/Binner.Web/ClientApp/src/pages/Settings.js b/Binner/Binner.Web/ClientApp/src/pages/Settings.js index 881b86d..8a99e9d 100644 --- a/Binner/Binner.Web/ClientApp/src/pages/Settings.js +++ b/Binner/Binner.Web/ClientApp/src/pages/Settings.js @@ -37,6 +37,7 @@ export const Settings = (props) => { const [saveMessage, setSaveMessage] = useState(""); const [testing, setTesting] = useState(false); const [confirmAuthIsOpen, setConfirmAuthIsOpen] = useState(false); + const [authorizationApiName, setAuthorizationApiName] = useState(''); const [authorizationUrl, setAuthorizationUrl] = useState(null); const [isDirty, setIsDirty] = useState(false); const [printModes] = useState([ @@ -730,12 +731,11 @@ export const Settings = (props) => { testResult.message = message; } setApiTestResults([...apiTestResults]); - setTesting(false); }).catch((err) => { toast.error(`Error: ${err}`); console.error('Error!', err); - setTesting(false); }); + setTesting(false); }; const getTestResultIcon = (apiName) => { @@ -1277,7 +1277,7 @@ export const Settings = (props) => { > {t('button.forgetCredentials', "Forget Credentials")} } - /> + />