Skip to content

Commit

Permalink
sort complete orders by date
Browse files Browse the repository at this point in the history
  • Loading branch information
SorinC6 committed Oct 9, 2023
1 parent 6f7382d commit c097e07
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const mapCompletedOrders = (orders: TransactionInfo[], wallet: YoroiWalle
}
})
.filter(isNonNullable)
.sort((a, b) => (a.date > b.date ? -1 : 1))

return result
}
Expand Down

0 comments on commit c097e07

Please sign in to comment.