diff --git a/web/components/amount-input.tsx b/web/components/amount-input.tsx index 2e935b66..8f794e48 100644 --- a/web/components/amount-input.tsx +++ b/web/components/amount-input.tsx @@ -119,9 +119,6 @@ export function BuyAmountInput(props: { ? Math.min(amount ?? 0, MAX_LOAN_PER_CONTRACT - prevLoanAmount) : 0 - const amountNetLoan = (amount ?? 0) - loanAmount - const remainingBalance = Math.max(0, (user?.balance ?? 0) - amountNetLoan) - const onAmountChange = (amount: number | undefined) => { onChange(amount) @@ -152,12 +149,6 @@ export function BuyAmountInput(props: { > {user && (