Skip to content

Commit

Permalink
updated sorting logic
Browse files Browse the repository at this point in the history
  • Loading branch information
radumojic committed Mar 29, 2024
1 parent 1be3cb0 commit 0ed981b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/NodesAuctionList/NodesAuctionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const NodesAuctionList = () => {
Promise.all([...nodesPromiseArray, getNodesCount(auctionListFilters)]).then(
([firstNodes, secondNodes, count]) => {
const allNodes = [
...(sort.order === SortOrderEnum.desc
...(sort.order === SortOrderEnum.asc
? [...(secondNodes.data ?? []), ...(firstNodes.data ?? [])]
: [...(firstNodes.data ?? []), ...(secondNodes.data ?? [])])
];
Expand Down

0 comments on commit 0ed981b

Please sign in to comment.