From 0ed981b0b91ecd115e0e8279901e252cdcf02532 Mon Sep 17 00:00:00 2001 From: Radu Mojic Date: Fri, 29 Mar 2024 11:37:12 +0200 Subject: [PATCH] updated sorting logic --- src/pages/NodesAuctionList/NodesAuctionList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/NodesAuctionList/NodesAuctionList.tsx b/src/pages/NodesAuctionList/NodesAuctionList.tsx index 87ebeda8d..c88c0daa4 100644 --- a/src/pages/NodesAuctionList/NodesAuctionList.tsx +++ b/src/pages/NodesAuctionList/NodesAuctionList.tsx @@ -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 ?? [])]) ];