Fix sorting for Your bets table

This commit is contained in:
James Grugett 2022-06-14 11:27:11 -05:00
parent be094ef8e5
commit 92b368f11e

View File

@ -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)