Commit 87455fc0 authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

fix: sort explore table null values (#5130)

parent 054d92cb
......@@ -23,8 +23,8 @@ const compareFloats = (a: number, b: number): 1 | -1 => {
const CollectionTable = ({ data }: { data: CollectionTableColumn[] }) => {
const floorSort = useMemo(() => {
return (rowA: Row<CollectionTableColumn>, rowB: Row<CollectionTableColumn>) => {
const aFloor = BigNumber.from(rowA.original.floor.value)
const bFloor = BigNumber.from(rowB.original.floor.value)
const aFloor = BigNumber.from(rowA.original.floor.value ?? 0)
const bFloor = BigNumber.from(rowB.original.floor.value ?? 0)
return aFloor.gte(bFloor) ? 1 : -1
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment