From 1d13b7e75bc191ef2b225eac96d6317f7cc26aef Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 30 Aug 2022 17:01:58 -0600 Subject: [PATCH] Update high-medium-low --- web/components/contract/contract-details.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx index 99933ffc..44b87686 100644 --- a/web/components/contract/contract-details.tsx +++ b/web/components/contract/contract-details.tsx @@ -162,7 +162,7 @@ export function ContractDetails(props: { const user = useUser() const [open, setOpen] = useState(false) const { width } = useWindowSize() - const isMobile = (width ?? 0) < 768 + const isMobile = (width ?? 0) < 600 const groupInfo = ( @@ -286,10 +286,16 @@ export function ExtraMobileContractDetails(props: { forceShowVolume?: boolean }) { const { contract, user, forceShowVolume } = props - const { volume, resolutionTime, closeTime, creatorId } = contract + const { volume, resolutionTime, closeTime, creatorId, uniqueBettorCount } = + contract + const uniqueBettors = uniqueBettorCount ?? 0 const { resolvedDate } = contractMetrics(contract) const volumeTranslation = - volume > 800 ? 'High' : volume > 300 ? 'Medium' : 'Low' + volume > 800 || uniqueBettors > 20 + ? 'High' + : volume > 300 || uniqueBettors > 10 + ? 'Medium' + : 'Low' return (