From 3d31641050b94989c9ba68c670871f626376ae81 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sat, 4 Jun 2022 23:21:24 -0500 Subject: [PATCH] Fix clicking card from user profile has no effect --- web/components/contract/contracts-list.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/contract/contracts-list.tsx b/web/components/contract/contracts-list.tsx index a6af19a2..51765535 100644 --- a/web/components/contract/contracts-list.tsx +++ b/web/components/contract/contracts-list.tsx @@ -44,7 +44,9 @@ export function ContractsGrid(props: { contract={contract} key={contract.id} showCloseTime={showCloseTime} - onClick={() => onContractClick?.(contract)} + onClick={ + onContractClick ? () => onContractClick(contract) : undefined + } /> ))}