diff --git a/components/DepositTokensButton.tsx b/components/DepositTokensButton.tsx index 76e643ef7c..7d996f1819 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() : '') + const [amount, setAmount] = useState(humanReadableMax?.toString() ?? '') const deposit = useDepositCallback(role) return (