From 02e36a8d417acbf2ec20133cb8e2db4251c5be22 Mon Sep 17 00:00:00 2001 From: Erik Kieckhafer Date: Mon, 12 Jun 2017 10:27:22 -0700 Subject: [PATCH] add missing "orders not found" text --- .../orders/client/components/ordersList.js | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/imports/plugins/core/orders/client/components/ordersList.js b/imports/plugins/core/orders/client/components/ordersList.js index 0be398f09c0..3a3aae45773 100644 --- a/imports/plugins/core/orders/client/components/ordersList.js +++ b/imports/plugins/core/orders/client/components/ordersList.js @@ -156,15 +156,26 @@ class OrdersList extends Component { render() { const { orders } = this.props; + if (orders.length) { + return ( +
+ {orders.map((order, i) => { + return ( +
+ {this.renderOrderCard(order)} +
+ ); + })} +
+ ); + } + return (
- {orders.map((order, i) => { - return ( -
- {this.renderOrderCard(order)} -
- ); - })} +
+ + +
); }