Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
fix: sort order list by placed_at
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Jul 16, 2024
1 parent 6be2a23 commit 8ea6aeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/app/src/pages/OrderList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ function OrderList(): JSX.Element {
search: {
limit: 25,
sort: 'desc',
sort_by: 'order.updated_at',
sort_by: isPendingOrdersList
? 'order.updated_at'
: 'order.placed_at',
fields: ['order.*', 'billing_address.*', 'market.*']
}
}}
Expand Down

0 comments on commit 8ea6aeb

Please sign in to comment.