Fix closing soon sort
This commit is contained in:
parent
f00064732d
commit
47f95678bd
|
@ -241,7 +241,8 @@ export function SearchableGrid(props: {
|
||||||
matches = _.sortBy(matches, ({ volume24Hours }) => -1 * volume24Hours)
|
matches = _.sortBy(matches, ({ volume24Hours }) => -1 * volume24Hours)
|
||||||
matches = _.sortBy(
|
matches = _.sortBy(
|
||||||
matches,
|
matches,
|
||||||
(contract) => -1 * (contract.closeTime ?? Infinity)
|
(contract) =>
|
||||||
|
(sort === 'closed' ? -1 : 1) * (contract.closeTime ?? Infinity)
|
||||||
)
|
)
|
||||||
const hideClosed = sort === 'closed'
|
const hideClosed = sort === 'closed'
|
||||||
matches = matches.filter(
|
matches = matches.filter(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user