onContractClick(contract) : undefined
}
diff --git a/web/pages/contract-search-firestore.tsx b/web/pages/contract-search-firestore.tsx
index 98a0f6cb..00d8fe49 100644
--- a/web/pages/contract-search-firestore.tsx
+++ b/web/pages/contract-search-firestore.tsx
@@ -62,6 +62,12 @@ export default function ContractSearchFirestore(props: {
matches = sortBy(matches, ({ volume24Hours }) => -1 * volume24Hours)
}
+ const showTime = ['close-date', 'closed'].includes(sort)
+ ? 'close-date'
+ : sort === 'resolve-date'
+ ? 'resolve-date'
+ : undefined
+
return (
{/* Show a search input next to a sort dropdown */}
@@ -85,7 +91,6 @@ export default function ContractSearchFirestore(props: {
-
{contracts === undefined ? (
) : (
@@ -93,7 +98,7 @@ export default function ContractSearchFirestore(props: {
contracts={matches}
loadMore={() => {}}
hasMore={false}
- showCloseTime={['close-date', 'closed'].includes(sort)}
+ showTime={showTime}
/>
)}