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 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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user