Skip to content

Commit

Permalink
fix: use sort
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Jun 10, 2024
1 parent 842c0b9 commit e9f789b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/withdrawals/hooks/contract/useWithdrawalsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const useWithdrawalRequests = () => {

const [requestIds, lastCheckpointIndex] = await Promise.all([
contractRpc.getWithdrawalRequests(account).then((ids) => {
return ids.toSorted((aId, bId) => (aId.gt(bId) ? 1 : -1));
return [...ids].sort((aId, bId) => (aId.gt(bId) ? 1 : -1));
}),
contractRpc.getLastCheckpointIndex(),
]);
Expand Down

0 comments on commit e9f789b

Please sign in to comment.