From aae23e4ea3a938a2b103a2a362ae399638ae9bb1 Mon Sep 17 00:00:00 2001 From: GotPPay Date: Tue, 11 Sep 2018 09:26:57 +0200 Subject: [PATCH] improve frontend code --- .../containers/profileSettings/BillingAddressesContainer.jsx | 2 +- .../containers/profileSettings/ProfileAddressesContainer.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/containers/profileSettings/BillingAddressesContainer.jsx b/frontend/src/containers/profileSettings/BillingAddressesContainer.jsx index 93d9c41..df0ebf0 100644 --- a/frontend/src/containers/profileSettings/BillingAddressesContainer.jsx +++ b/frontend/src/containers/profileSettings/BillingAddressesContainer.jsx @@ -21,7 +21,7 @@ class BillingAddressesContainer extends Component { } saveBillingAddress(address){ - this.props.dispatch(saveBillingAddress(this.props.idUser, this.props.idCompany, address)); + this.props.dispatch(saveBillingAddress(this.props.idUser, address)); } onAddressChange(address){ diff --git a/frontend/src/containers/profileSettings/ProfileAddressesContainer.jsx b/frontend/src/containers/profileSettings/ProfileAddressesContainer.jsx index b636cd9..32f4b3a 100644 --- a/frontend/src/containers/profileSettings/ProfileAddressesContainer.jsx +++ b/frontend/src/containers/profileSettings/ProfileAddressesContainer.jsx @@ -128,8 +128,8 @@ class ProfileAddressesContainer extends Component {
{ - (profileInfo && profileInfo.profileAddresses && profileInfo.profileAddresses.length > 0 ) && - profileInfo.profileAddresses.map(address => + (profileInfo && profileInfo.deliveryAddresses && profileInfo.deliveryAddresses.length > 0 ) && + profileInfo.deliveryAddresses.map(address =>