From fac3f43bdbf7ac7db4d03a91cb88b01a6b7ff471 Mon Sep 17 00:00:00 2001 From: Kirk Date: Mon, 16 Oct 2023 12:20:42 +0000 Subject: [PATCH] Minor fix --- components/DepositTokensButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/DepositTokensButton.tsx b/components/DepositTokensButton.tsx index 874dc5d387..b303bb53e8 100644 --- a/components/DepositTokensButton.tsx +++ b/components/DepositTokensButton.tsx @@ -43,7 +43,7 @@ export const DepositTokensButton = ({ ? undefined : depositAmount.shiftedBy(-mintInfo.decimals).toNumber() - const [amount, setAmount] = useState((humanReadableMax && humanReadableMax?.toString() && parseInt(humanReadableMax) > 0) ? humanReadableMax.toString() : '') + const [amount, setAmount] = useState((humanReadableMax && humanReadableMax?.toString() && humanReadableMax > 0) ? humanReadableMax.toString() : '') const deposit = useDepositCallback(role) return (