Skip to content

Commit

Permalink
Don't show Your trades if you have just unfilled limit orders
Browse files Browse the repository at this point in the history
  • Loading branch information
jahooma committed Mar 5, 2024
1 parent 904a1d1 commit c349330
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/pages/[username]/[contractSlug].tsx
Expand Up @@ -638,7 +638,9 @@ function YourTrades(props: { contract: Contract }) {
})
const userBets = rows ?? []

const visibleUserBets = userBets.filter((bet) => !bet.isRedemption)
const visibleUserBets = userBets.filter(
(bet) => !bet.isRedemption && bet.amount !== 0
)

if (visibleUserBets.length === 0) return null
return (
Expand Down

0 comments on commit c349330

Please sign in to comment.