diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx index f73db7d2..99933ffc 100644 --- a/web/components/contract/contract-details.tsx +++ b/web/components/contract/contract-details.tsx @@ -80,7 +80,7 @@ export function MiscDetails(props: { ) : (contract?.featuredOnHomeRank ?? 0) > 0 ? ( ) : volume > 0 || !isNew ? ( - {formatMoney(contract.volume)} bet + {formatMoney(volume)} bet ) : ( )} @@ -103,7 +103,7 @@ export function AvatarDetails(props: { short?: boolean }) { const { contract, short, className } = props - const { creatorName, creatorUsername } = contract + const { creatorName, creatorUsername, creatorAvatarUrl } = contract return ( @@ -146,8 +146,15 @@ export function ContractDetails(props: { disabled?: boolean }) { const { contract, isCreator, disabled } = props - const { closeTime, creatorName, creatorUsername, creatorId, groupLinks } = - contract + const { + closeTime, + creatorName, + creatorUsername, + creatorId, + groupLinks, + creatorAvatarUrl, + resolutionTime, + } = contract const { volumeLabel, resolvedDate } = contractMetrics(contract) const groupToDisplay = @@ -171,7 +178,7 @@ export function ContractDetails(props: { @@ -234,13 +241,10 @@ export function ContractDetails(props: { {(!!closeTime || !!resolvedDate) && ( - {resolvedDate && contract.resolutionTime ? ( + {resolvedDate && resolutionTime ? ( <> - + {resolvedDate} @@ -282,9 +286,10 @@ export function ExtraMobileContractDetails(props: { forceShowVolume?: boolean }) { const { contract, user, forceShowVolume } = props + const { volume, resolutionTime, closeTime, creatorId } = contract const { resolvedDate } = contractMetrics(contract) const volumeTranslation = - contract.volume > 800 ? 'High' : contract.volume > 300 ? 'Medium' : 'Low' + volume > 800 ? 'High' : volume > 300 ? 'Medium' : 'Low' return ( - {resolvedDate && contract.resolutionTime ? ( + {resolvedDate && resolutionTime ? ( - + {resolvedDate} @@ -307,12 +309,12 @@ export function ExtraMobileContractDetails(props: { ) : ( !resolvedDate && - contract.closeTime && ( + closeTime && ( Ends @@ -320,9 +322,7 @@ export function ExtraMobileContractDetails(props: { )} {(user || forceShowVolume) && ( - - {volumeTranslation} - + {volumeTranslation} Activity )}