Skip to content

Commit

Permalink
feat(pagedashboard): changed index order of dashboard items
Browse files Browse the repository at this point in the history
  • Loading branch information
limyifan1 committed Jun 28, 2020
1 parent 115356e commit cfddd02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Components/PageDashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ const monthNames = [

const OrderSettings = (props) => {
var orders = [];
let count = props.orders.length
props.orders.forEach((element, index) => {
let items = [];
element.orderItems.forEach((element, index) => {
Expand Down Expand Up @@ -819,7 +820,7 @@ const OrderSettings = (props) => {
}}
>
<CardContent>
<h5>Order # {index + 1}</h5>
<h5>Order # {count - index}</h5>
<br />
<h5>Ordered At {order_text}</h5>
<br />
Expand Down

1 comment on commit cfddd02

@vercel
Copy link

@vercel vercel bot commented on cfddd02 Jun 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.