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' type: 'comment'
comment: Comment comment: Comment
betsBySameUser: Bet[] betsBySameUser: Bet[]
hideOutcome: boolean
truncate: boolean truncate: boolean
smallAvatar: boolean smallAvatar: boolean
} }
@ -131,7 +130,6 @@ function groupBets(
comment, comment,
betsBySameUser: [bet], betsBySameUser: [bet],
contract, contract,
hideOutcome,
truncate: abbreviated, truncate: abbreviated,
smallAvatar, smallAvatar,
} }
@ -344,7 +342,6 @@ function groupBetsAndComments(
comment, comment,
betsBySameUser: [], betsBySameUser: [],
truncate: abbreviated, truncate: abbreviated,
hideOutcome: true,
smallAvatar, smallAvatar,
})) }))

View File

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