Skip to content

Commit

Permalink
Fix transfer debt for assets without maturity (#2316)
Browse files Browse the repository at this point in the history
* Fix transfer debt for assets without maturity

* Clean up
  • Loading branch information
sophialittlejohn authored Jul 25, 2024
1 parent 12cdd60 commit 5b5b569
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions centrifuge-app/src/pages/Loan/TransferDebtForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ export function TransferDebtForm({ loan }: { loan: LoanType }) {
return null
}

const maturityDatePassed =
loan?.pricing && 'maturityDate' in loan.pricing && new Date() > new Date(loan.pricing.maturityDate)
const maturityDatePassed = loan.pricing.maturityDate && new Date() > new Date(loan.pricing.maturityDate)
const selectedLoan = loans?.find((l) => l.id === form.values.targetLoan) as ActiveLoan | undefined

function validate(financeAmount: Decimal) {
Expand Down

0 comments on commit 5b5b569

Please sign in to comment.