Skip to content

Commit

Permalink
Auto-prettification
Browse files Browse the repository at this point in the history
  • Loading branch information
mantikoros authored and github-actions[bot] committed Dec 14, 2024
1 parent 71583ce commit 7f933db
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions web/components/site-activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function SiteActivity(props: {

const [offset, setOffset] = useState(0)
const limit = 10

const { data, loading } = useAPIGetter('get-site-activity', {
limit,
offset,
Expand All @@ -50,8 +50,14 @@ export function SiteActivity(props: {
return {
bets: uniqBy([...prev.bets, ...data.bets], 'id'),
comments: uniqBy([...prev.comments, ...data.comments], 'id'),
newContracts: uniqBy([...prev.newContracts, ...data.newContracts], 'id'),
relatedContracts: uniqBy([...prev.relatedContracts, ...data.relatedContracts], 'id')
newContracts: uniqBy(
[...prev.newContracts, ...data.newContracts],
'id'
),
relatedContracts: uniqBy(
[...prev.relatedContracts, ...data.relatedContracts],
'id'
),
}
})
}
Expand Down Expand Up @@ -131,9 +137,7 @@ export function SiteActivity(props: {
'rounded-md object-cover',
'h-12 w-12 sm:h-32 sm:w-32',
// Only hide on desktop if single bet
items.length === 1 &&
'amount' in items[0] &&
'sm:hidden'
items.length === 1 && 'amount' in items[0] && 'sm:hidden'
)}
/>
)}
Expand Down

0 comments on commit 7f933db

Please sign in to comment.