Skip to content

Commit

Permalink
Remove financing date for cash assets
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Aug 6, 2024
1 parent 9ca1adb commit 2ae2241
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion centrifuge-app/src/components/LoanList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ export function LoanList({ loans }: Props) {
header: <SortableTableHeader label="Financing date" />,
cell: (l: Row) => {
// @ts-expect-error value only exists on Tinlake loans and on active Centrifuge loans
return l.originationDate && (l.poolId.startsWith('0x') || l.status === 'Active')
return l.originationDate &&
(l.poolId.startsWith('0x') || l.status === 'Active') &&
'valuationMethod' in l.pricing &&
l.pricing.valuationMethod !== 'cash'
? // @ts-expect-error
formatDate(l.originationDate)
: '-'
Expand Down

0 comments on commit 2ae2241

Please sign in to comment.