Skip to content

Commit

Permalink
added missing variable.
Browse files Browse the repository at this point in the history
updated test button behavior on DigiKey
  • Loading branch information
replaysMike committed Apr 8, 2024
1 parent 6b3d3cd commit 3193f7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Binner/Binner.Web/ClientApp/src/pages/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down Expand Up @@ -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) => {
Expand Down Expand Up @@ -1277,7 +1277,7 @@ export const Settings = (props) => {
>
{t('button.forgetCredentials', "Forget Credentials")}
</Button>}
/>
/>
</Form.Field>
<Form.Field>
<Button
Expand Down

0 comments on commit 3193f7a

Please sign in to comment.