First pass at adding multiple addresses, can only add from AddressSelector at the moment
This commit is contained in:
parent
5acdb8233b
commit
4836025a1d
2 changed files with 21 additions and 17 deletions
|
@ -99,8 +99,11 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
selectAddress: function(index) {
|
||||
this.props.onSelected(index);
|
||||
this.setState({ hover: false });
|
||||
// Only try to select an address if one exists
|
||||
if (this.props.addressList.length !== 0) {
|
||||
this.props.onSelected(index);
|
||||
this.setState({ hover: false });
|
||||
}
|
||||
},
|
||||
|
||||
createAddressListTiles: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue