Fix sorting for Your bets table
This commit is contained in:
parent
be094ef8e5
commit
92b368f11e
|
@ -482,7 +482,10 @@ export function ContractBetsTable(props: {
|
|||
}) {
|
||||
const { contract, className, isYourBets } = props
|
||||
|
||||
const bets = props.bets.filter((b) => !b.isAnte)
|
||||
const bets = sortBy(
|
||||
props.bets.filter((b) => !b.isAnte),
|
||||
(bet) => bet.createdTime
|
||||
).reverse()
|
||||
|
||||
const [sales, buys] = partition(bets, (bet) => bet.sale)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user