From 2ae2241d04ef522f40a243cd0c368a623e0a7640 Mon Sep 17 00:00:00 2001 From: sophian Date: Tue, 6 Aug 2024 13:39:22 -0400 Subject: [PATCH] Remove financing date for cash assets --- centrifuge-app/src/components/LoanList.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/centrifuge-app/src/components/LoanList.tsx b/centrifuge-app/src/components/LoanList.tsx index 5eb1729d3..17d74d553 100644 --- a/centrifuge-app/src/components/LoanList.tsx +++ b/centrifuge-app/src/components/LoanList.tsx @@ -121,7 +121,10 @@ export function LoanList({ loans }: Props) { header: , 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) : '-'