From 548a29842cb9efcaea601675e822cba3a5652d28 Mon Sep 17 00:00:00 2001 From: "ilge.ustun" Date: Tue, 5 Mar 2024 15:00:28 +0100 Subject: [PATCH] don't cleanup on request when 1 token --- app/src/components/FaucetForm/Faucet.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/components/FaucetForm/Faucet.tsx b/app/src/components/FaucetForm/Faucet.tsx index 70d048e..447a39f 100644 --- a/app/src/components/FaucetForm/Faucet.tsx +++ b/app/src/components/FaucetForm/Faucet.tsx @@ -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()