You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
First pass at adding multiple addresses, can only add from AddressSelector at the moment
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user