From f43df424492f8fd6ca51190b683b8e62b2afcfc4 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sat, 23 Jul 2022 15:23:47 -0500 Subject: [PATCH] Change card to show volume instead of pool --- web/components/contract/contract-details.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx index 544e9c27..f581519b 100644 --- a/web/components/contract/contract-details.tsx +++ b/web/components/contract/contract-details.tsx @@ -55,10 +55,6 @@ export function MiscDetails(props: { groupLinks, } = contract - // Show at most one category that this contract is tagged by - // const categories = CATEGORY_LIST.filter((category) => - // tags.map((t) => t.toLowerCase()).includes(category) - // ).slice(0, 1) const isNew = createdTime > Date.now() - DAY_MS && !isResolved return ( @@ -80,14 +76,11 @@ export function MiscDetails(props: { {fromNow(resolutionTime || 0)} ) : volume > 0 || !isNew ? ( - {contractPool(contract)} pool + {formatMoney(contract.volume)} bet ) : ( )} - {/*{categories.length > 0 && (*/} - {/* */} - {/*)}*/} {groupLinks && groupLinks.length > 0 && (