improve frontend code

This commit is contained in:
GotPPay
2018-09-11 09:26:57 +02:00
committed by Bilal Catic
parent a79ef1044c
commit aae23e4ea3
2 changed files with 3 additions and 3 deletions

View File

@@ -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){

View File

@@ -128,8 +128,8 @@ class ProfileAddressesContainer extends Component {
<Col>
<div>
{
(profileInfo && profileInfo.profileAddresses && profileInfo.profileAddresses.length > 0 ) &&
profileInfo.profileAddresses.map(address =>
(profileInfo && profileInfo.deliveryAddresses && profileInfo.deliveryAddresses.length > 0 ) &&
profileInfo.deliveryAddresses.map(address =>
<TagName key={'address-'+ address.id}
idSelectedDeliveryAddress={idSelectedDeliveryAddress}
handleDeliveryChange={handleDeliveryChange}