From f73883c29aa949882d660aaa15a1a4a872c4443b Mon Sep 17 00:00:00 2001 From: Milli Date: Wed, 25 May 2022 22:19:23 +0200 Subject: [PATCH] added automatic resolution to contract overview --- web/components/contract/contract-details.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx index ed07e409..3d8789d2 100644 --- a/web/components/contract/contract-details.tsx +++ b/web/components/contract/contract-details.tsx @@ -109,7 +109,7 @@ export function ContractDetails(props: { }) { const { contract, bets, isCreator, disabled } = props const { closeTime, creatorName, creatorUsername } = contract - const { volumeLabel, resolvedDate } = contractMetrics(contract) + const { volumeLabel, automaticResolutionDate, resolvedDate } = contractMetrics(contract) return ( @@ -164,6 +164,15 @@ export function ContractDetails(props: { )} + {!resolvedDate && contract.automaticResolutionTime && ( + + {automaticResolutionDate + ": " + contract.automaticResolution} + + )} +