diff --git a/web/components/contracts-list.tsx b/web/components/contracts-list.tsx index 97e2c06a..35b8f14b 100644 --- a/web/components/contracts-list.tsx +++ b/web/components/contracts-list.tsx @@ -5,43 +5,54 @@ import { Contract, deleteContract, listContracts } from '../lib/firebase/contrac function ContractCard(props: { contract: Contract }) { const { contract } = props + + // only show delete button if there's not bets + const showDelete = contract.pot.YES === contract.seedAmounts.YES + && contract.pot.NO === contract.seedAmounts.NO + + const [isDeleted, setIsDeleted] = useState(false) // temporary fix until we stream changes + + if (isDeleted) + return <>> + return (
+
{contract.question}
-- {contract.outcomeType} -
-{contract.id}
+ {/*{contract.description}
-Created on{' '}
- + + {showDelete && + + }