Pass along creatorAvatarUrl

Hoping nothing breaks if the avatarUrl is empty
This commit is contained in:
Austin Chen 2022-04-29 16:54:17 -04:00
parent 894c93d87e
commit 5eaf9062d4

View File

@ -324,8 +324,14 @@ function ContractTopTrades(props: {
} }
const getOpenGraphProps = (contract: Contract) => { const getOpenGraphProps = (contract: Contract) => {
const { resolution, question, creatorName, creatorUsername, outcomeType } = const {
contract resolution,
question,
creatorName,
creatorUsername,
outcomeType,
creatorAvatarUrl,
} = contract
const probPercent = const probPercent =
outcomeType === 'BINARY' ? getBinaryProbPercent(contract) : undefined outcomeType === 'BINARY' ? getBinaryProbPercent(contract) : undefined
@ -339,8 +345,9 @@ const getOpenGraphProps = (contract: Contract) => {
question, question,
probability: probPercent, probability: probPercent,
metadata: contractTextDetails(contract), metadata: contractTextDetails(contract),
creatorName: creatorName, creatorName,
creatorUsername: creatorUsername, creatorUsername,
creatorAvatarUrl,
description, description,
} }
} }