diff --git a/nym-wallet/src/components/Delegation/DelegationList.tsx b/nym-wallet/src/components/Delegation/DelegationList.tsx index 91fccfdf0a..436b5e027d 100644 --- a/nym-wallet/src/components/Delegation/DelegationList.tsx +++ b/nym-wallet/src/components/Delegation/DelegationList.tsx @@ -57,6 +57,7 @@ function descendingComparator(a: any, b: any, orderBy: string) { } return 0; } +// Sorting function needs fixing function sortPendingDelegation(a: DelegationWithEvent, b: DelegationWithEvent) { if (isPendingDelegation(a) && isPendingDelegation(b)) return 0; @@ -154,7 +155,7 @@ export const DelegationList: React.FC<{ {items?.length ? ( - items.sort(getComparator(order, orderBy)).map((item) => ( + items.map((item) => (