Skip to content

Commit

Permalink
Cash: rename principal to amount and include withdrawal addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Aug 1, 2024
1 parent 07a6676 commit 7ac2eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions centrifuge-app/src/pages/Loan/FinanceForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function InternalFinanceForm({ loan, source }: { loan: LoanType; source: string
<CurrencyInput
{...field}
value={field.value instanceof Decimal ? field.value.toNumber() : field.value}
label="Principal"
label={isCashLoan(loan) ? 'Amount' : 'Principal'}
currency={pool?.currency.symbol}
onChange={(value) => form.setFieldValue('principal', value)}
onSetMax={
Expand All @@ -218,7 +218,7 @@ function InternalFinanceForm({ loan, source }: { loan: LoanType; source: string
}}
</Field>
)}
{source === 'reserve' && !isCashLoan(loan) && withdraw.render()}
{source === 'reserve' && withdraw.render()}
<Box bg="statusDefaultBg" p={1}>
{source === 'reserve' ? (
<InlineFeedback status="default">
Expand Down

0 comments on commit 7ac2eeb

Please sign in to comment.