Pass along creatorAvatarUrl
Hoping nothing breaks if the avatarUrl is empty
This commit is contained in:
parent
894c93d87e
commit
5eaf9062d4
|
@ -324,8 +324,14 @@ function ContractTopTrades(props: {
|
|||
}
|
||||
|
||||
const getOpenGraphProps = (contract: Contract) => {
|
||||
const { resolution, question, creatorName, creatorUsername, outcomeType } =
|
||||
contract
|
||||
const {
|
||||
resolution,
|
||||
question,
|
||||
creatorName,
|
||||
creatorUsername,
|
||||
outcomeType,
|
||||
creatorAvatarUrl,
|
||||
} = contract
|
||||
const probPercent =
|
||||
outcomeType === 'BINARY' ? getBinaryProbPercent(contract) : undefined
|
||||
|
||||
|
@ -339,8 +345,9 @@ const getOpenGraphProps = (contract: Contract) => {
|
|||
question,
|
||||
probability: probPercent,
|
||||
metadata: contractTextDetails(contract),
|
||||
creatorName: creatorName,
|
||||
creatorUsername: creatorUsername,
|
||||
creatorName,
|
||||
creatorUsername,
|
||||
creatorAvatarUrl,
|
||||
description,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user