Skip to content

Commit

Permalink
don't cleanup on request when 1 token
Browse files Browse the repository at this point in the history
  • Loading branch information
ilge-ustun committed Mar 5, 2024
1 parent 82e1a36 commit 548a298
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/components/FaucetForm/Faucet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ function Faucet({ enabledTokens, chainId, setLoading }: FaucetProps): JSX.Elemen
.post(apiURL, req)
.then((response) => {
setWalletAddress("")
setToken(null)

if (enabledTokens.length > 1 ) {
setToken(null)
}

// Reset captcha
setCaptchaToken("")
captchaRef.current?.resetCaptcha()
Expand Down

0 comments on commit 548a298

Please sign in to comment.