Fix order organization info

This commit is contained in:
Almira Krdzic
2018-11-05 20:33:11 +01:00
parent fcbddcb22a
commit c9b04dac1e
4 changed files with 57 additions and 23 deletions

View File

@@ -89,7 +89,7 @@ export const fromWCOrder = (WCOrder) => {
isOwner: comment['is_owner']
})) : [],
deliveryAddress: formatAddress(WCOrder.shipping),
customer: WCOrder.customer,
commercialLead: WCOrder['commercial_lead'],
customer: WCOrder.customer || {},
commercialLead: WCOrder['commercial_lead'] || {},
}
};