From a31e82061ae0505ca0177c67ad11392887b2371f Mon Sep 17 00:00:00 2001 From: Nacho Iacovino Date: Tue, 25 Oct 2022 19:11:37 +0200 Subject: [PATCH] Fix token drop minted show --- src/shared/claim-button-erc20.tsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/shared/claim-button-erc20.tsx b/src/shared/claim-button-erc20.tsx index 20d16a8..94f1e66 100644 --- a/src/shared/claim-button-erc20.tsx +++ b/src/shared/claim-button-erc20.tsx @@ -316,12 +316,20 @@ export const ERC20ClaimButton: React.FC = ({ - {isLoading ? "00" : numberClaimed} - {" "} - {numberTotal !== "" && "/ "} - - {isLoading ? "00" : numberTotal} + {isLoading + ? "00" + : utils.formatEther(BigNumber.from(numberClaimed || 0))} {" "} + {numberTotal !== "" && ( + <> + /{" "} + + {isLoading + ? "00" + : utils.formatEther(BigNumber.from(numberTotal || 0))} + {" "} + + )} minted