fix: reset pending on invalid value

This commit is contained in:
Radek Czemerys
2020-11-09 19:21:58 +01:00
parent 855d0e62ce
commit ea09cacc95

View File

@@ -398,7 +398,7 @@ export const Authenticate = ({
);
const onInvalidValue = (value: ChallengeValue) => {
setPending(true);
setPending(false);
dispatch({
type: 'setState',
id: value.prompt.id.toString(),