Skip to content

Commit

Permalink
fix: adjust success state check
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Jul 9, 2024
1 parent 3c96a8e commit 6d0aa42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/staking/app/faucet/AuthModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export const AuthModule = () => {
const { hash, error, faucetError } = res;
if (hash) {
setTransactionHash(hash);
setFormState(FORM_STATE.SUCCESS);
return resolve(hash);
}

Expand All @@ -146,8 +147,6 @@ export const AuthModule = () => {
}
form.setError('root', { message: error });
return reject(error);
} else {
setFormState(FORM_STATE.SUCCESS);
}
})
);
Expand Down

0 comments on commit 6d0aa42

Please sign in to comment.