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 + } /> ))}