From 5020f38090b5c0581fbde84baf43e54cadb64b22 Mon Sep 17 00:00:00 2001 From: Mike Johnston Date: Fri, 20 Mar 2026 20:19:49 -0400 Subject: [PATCH] fix: handle deleted funds in trade and profile displays --- src/app/history/page.tsx | 10 +++++++--- src/app/profile/[username]/page.tsx | 16 ++++++++++------ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/app/history/page.tsx b/src/app/history/page.tsx index d564fad..5b26414 100644 --- a/src/app/history/page.tsx +++ b/src/app/history/page.tsx @@ -97,9 +97,13 @@ export default async function TradeHistoryPage({ searchParams }: PageProps) { : 'Account opened'} ) : isFundTrade ? ( - - {t.fund!.name} - + t.fund ? ( + + {t.fund.name} + + ) : ( + Deleted Fund + ) ) : ( ) : isFundTrade ? ( - - {t.fund!.name} - + t.fund ? ( + + {t.fund.name} + + ) : ( + Deleted Fund + ) ) : (