diff --git a/centrifuge-app/src/pages/Loan/TransferDebtForm.tsx b/centrifuge-app/src/pages/Loan/TransferDebtForm.tsx index c77e05ed6..11a7d6b66 100644 --- a/centrifuge-app/src/pages/Loan/TransferDebtForm.tsx +++ b/centrifuge-app/src/pages/Loan/TransferDebtForm.tsx @@ -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) {