Skip to content

Commit

Permalink
fix multiple active order ejs
Browse files Browse the repository at this point in the history
  • Loading branch information
brentchang committed Jul 28, 2024
1 parent 840aa8e commit 3d0f7a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2,421 deletions.
4 changes: 3 additions & 1 deletion views/orderListPage.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@


<h1>Orders</h1>
<% if (typeof(activeOrder)!= 'undefined') { %>
<% if (typeof(activeOrder)!= 'undefined' && activeOrder.length>0) { %>
<% pastOrders.forEach(activeOrder => { %>
<div class="wrapper">
<div class="order-number">Order number: <%= activeOrder.order_num %></div>
<div class="order-flex">
Expand Down Expand Up @@ -119,6 +120,7 @@
</div>
</div>
</div>
<% }) %>
<% }else{ %>
<div class="wrapper">
No orders yet.
Expand Down
Loading

0 comments on commit 3d0f7a1

Please sign in to comment.