diff --git a/components/DepositTokensButton.tsx b/components/DepositTokensButton.tsx index a87601dc4c..fe633ac93f 100644 --- a/components/DepositTokensButton.tsx +++ b/components/DepositTokensButton.tsx @@ -43,9 +43,10 @@ export const DepositTokensButton = ({ ? undefined : depositAmount.shiftedBy(-mintInfo.decimals).toNumber() - const [amount, setAmount] = useState((humanReadableMax && humanReadableMax?.toString() && humanReadableMax > 0) ? humanReadableMax.toString() : '') + const [amount, setAmount] = useState(humanReadableMax ? humanReadableMax?.toString() : '') const deposit = useDepositCallback(role) + return ( <>