From caddca665f43098086137d67a06e562f93bdde47 Mon Sep 17 00:00:00 2001 From: Ramiro Vazquez Date: Mon, 12 Jul 2021 09:39:55 -0300 Subject: [PATCH] disable claim button when auction network is different than wallet network --- src/components/auction/Claimer/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/auction/Claimer/index.tsx b/src/components/auction/Claimer/index.tsx index 5779a5b06..47845b74d 100644 --- a/src/components/auction/Claimer/index.tsx +++ b/src/components/auction/Claimer/index.tsx @@ -154,8 +154,9 @@ const Claimer: React.FC = (props) => { showConfirm || isLoading || userConfirmedTx || - claimStatus != ClaimState.NOT_CLAIMED, - [isValid, showConfirm, isLoading, userConfirmedTx, claimStatus], + claimStatus != ClaimState.NOT_CLAIMED || + chainId !== Web3ChainId, + [isValid, showConfirm, isLoading, userConfirmedTx, claimStatus, chainId, Web3ChainId], ) const isXDAI = isTokenXDAI(derivedAuctionInfo.biddingToken.address, chainId)