Skip to content

Commit

Permalink
Fix overdue asset count (#2091)
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx authored Apr 21, 2024
1 parent 934f16c commit 39f9ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion centrifuge-app/src/components/PoolOverview/KeyMetrics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const KeyMetrics = ({ assetType, averageMaturity, loans, poolId }: Props)
const today = new Date()
today.setUTCHours(0, 0, 0, 0)
const days = daysBetween(today, loan.pricing.maturityDate)
return loan.status === 'Active' && loan.pricing.maturityDate && days < 0
return loan.status === 'Active' && loan.pricing.maturityDate && days < 0 && !loan.outstandingDebt.isZero()
}).length

const isBT3BT4 =
Expand Down

0 comments on commit 39f9ad0

Please sign in to comment.