diff --git a/centrifuge-app/src/components/LoanLabel.tsx b/centrifuge-app/src/components/LoanLabel.tsx index 65fac524be..56b5d0c045 100644 --- a/centrifuge-app/src/components/LoanLabel.tsx +++ b/centrifuge-app/src/components/LoanLabel.tsx @@ -18,6 +18,9 @@ export function getLoanLabelStatus(l: Loan | TinlakeLoan): [LabelStatus, string] if (l.status === 'Created') return ['default', 'Created'] if (l.status === 'Active' && 'maturityDate' in l.pricing && l.pricing.maturityDate) { + const isTinlakeLoan = 'riskGroup' in l + if (isTinlakeLoan) return ['info', 'Ongoing'] + const days = daysBetween(today, l.pricing.maturityDate) if (days === 0) return ['warning', 'Due today'] if (days === 1) return ['warning', 'Due tomorrow']