Commit 0db8e61f authored by Darrick Yong's avatar Darrick Yong

fix syntax on order index

parent fb6e492d
...@@ -25,7 +25,12 @@ const OrderIndex = ({ ...@@ -25,7 +25,12 @@ const OrderIndex = ({
<button onClick={editOrder}>Update Order</button> <button onClick={editOrder}>Update Order</button>
{orders.allIds.map(orderId => { {orders.allIds.map(orderId => {
const order = orders.byId[orderId]; const order = orders.byId[orderId];
return <OrderIndexItem key={order.id} order={order} /> return (
<OrderIndexItem
key={order.id}
order={order}
/>
)
})} })}
</div> </div>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment