From 0a5e51ecb40f719723fe274e079e0c3a723d3284 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Thu, 21 Apr 2022 12:26:12 -0500 Subject: [PATCH] ContractInfoDialog: don't show add liquidity when market is closed --- web/components/contract/contract-info-dialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/contract/contract-info-dialog.tsx b/web/components/contract/contract-info-dialog.tsx index 95da0402..3d3bc8b4 100644 --- a/web/components/contract/contract-info-dialog.tsx +++ b/web/components/contract/contract-info-dialog.tsx @@ -113,7 +113,7 @@ export function ContractInfoDialog(props: { contract: Contract; bets: Bet[] }) {
- {!contract.resolution && ( + {!contract.resolution && (!closeTime || closeTime > Date.now()) && ( <>
Add liquidity