First pass at adding multiple addresses, can only add from AddressSelector at the moment

This commit is contained in:
wmwragg 2016-09-12 15:21:17 +01:00
parent 5acdb8233b
commit 4836025a1d
2 changed files with 21 additions and 17 deletions

View file

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