From 7683ebc0b8db4920d8986e8c41ebcde9f4f44115 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sun, 27 Mar 2022 22:13:08 -0500 Subject: [PATCH] Remove "Remaining balance" --- web/components/amount-input.tsx | 9 --------- 1 file changed, 9 deletions(-) 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 && ( - - Remaining balance{' '} - - {formatMoney(Math.floor(remainingBalance))} - - {contractIdForLoan && (