Hide bets on free response feed (except for feedType 'multi')
This commit is contained in:
parent
7aa074a31a
commit
c24c9404a7
|
@ -732,12 +732,17 @@ function FeedItems(props: {
|
||||||
const { outcomeType } = contract
|
const { outcomeType } = contract
|
||||||
const isBinary = outcomeType === 'BINARY'
|
const isBinary = outcomeType === 'BINARY'
|
||||||
|
|
||||||
|
const filteredItems =
|
||||||
|
outcomeType === 'FREE_RESPONSE' && feedType !== 'multi'
|
||||||
|
? items.filter((item) => item.type !== 'bet' && item.type !== 'betgroup')
|
||||||
|
: items
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flow-root pr-2 md:pr-0">
|
<div className="flow-root pr-2 md:pr-0">
|
||||||
<div className={clsx(tradingAllowed(contract) ? '' : '-mb-6')}>
|
<div className={clsx(tradingAllowed(contract) ? '' : '-mb-6')}>
|
||||||
{items.map((activityItem, activityItemIdx) => (
|
{filteredItems.map((activityItem, activityItemIdx) => (
|
||||||
<div key={activityItem.id} className="relative pb-6">
|
<div key={activityItem.id} className="relative pb-6">
|
||||||
{activityItemIdx !== items.length - 1 ? (
|
{activityItemIdx !== filteredItems.length - 1 ? (
|
||||||
<span
|
<span
|
||||||
className="absolute top-5 left-5 -ml-px h-[calc(100%-2rem)] w-0.5 bg-gray-200"
|
className="absolute top-5 left-5 -ml-px h-[calc(100%-2rem)] w-0.5 bg-gray-200"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user