Skip to content

Commit

Permalink
Display orders in reversed order on Admin Panel (From Newest to Oldest)
Browse files Browse the repository at this point in the history
  • Loading branch information
elyse502 committed Nov 21, 2024
1 parent 1d4774d commit dc828b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/src/pages/Orders.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Orders = ({ token }) => {
);
// console.log(response.data);
if (response.data.success) {
setOrders(response.data.orders);
setOrders(response.data.orders.reverse());
} else {
toast.error(response.data.message);
}
Expand Down

0 comments on commit dc828b4

Please sign in to comment.