Skip to content

Commit

Permalink
update order history page
Browse files Browse the repository at this point in the history
  • Loading branch information
Atik203 committed Aug 2, 2024
1 parent cd77002 commit 1fd3bd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/order/OrderHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export default function OrderHistory() {
<h2 className="sr-only">Recent orders</h2>

<div className="space-y-16 sm:space-y-24">
{orders.map((order) => {
{orders.slice(0, 5).map((order) => {
// Display only 5 orders
const statusIndex = STATUS.indexOf(order.orderData.status);
const progressPercentage =
((statusIndex + 1) / STATUS.length) * 100;
Expand Down

0 comments on commit 1fd3bd8

Please sign in to comment.