Remove unused hideOutcome in comments

This commit is contained in:
Ian Philips 2022-05-09 13:53:57 -04:00
parent 8fbbeffd38
commit 2ec1a8c40a
2 changed files with 2 additions and 13 deletions

View File

@ -53,7 +53,6 @@ export type CommentItem = BaseActivityItem & {
type: 'comment'
comment: Comment
betsBySameUser: Bet[]
hideOutcome: boolean
truncate: boolean
smallAvatar: boolean
}
@ -131,7 +130,6 @@ function groupBets(
comment,
betsBySameUser: [bet],
contract,
hideOutcome,
truncate: abbreviated,
smallAvatar,
}
@ -344,7 +342,6 @@ function groupBetsAndComments(
comment,
betsBySameUser: [],
truncate: abbreviated,
hideOutcome: true,
smallAvatar,
}))

View File

@ -125,18 +125,10 @@ export function FeedComment(props: {
contract: Contract
comment: Comment
betsBySameUser: Bet[]
hideOutcome: boolean
truncate: boolean
smallAvatar: boolean
}) {
const {
contract,
comment,
betsBySameUser,
hideOutcome,
truncate,
smallAvatar,
} = props
const { contract, comment, betsBySameUser, truncate, smallAvatar } = props
const { text, userUsername, userName, userAvatarUrl, createdTime } = comment
let outcome: string | undefined,
bought: string | undefined,
@ -188,7 +180,7 @@ export function FeedComment(props: {
)}
<>
{bought} {money}
{outcome && !hideOutcome && (
{outcome && (
<>
{' '}
of{' '}