Picking the top of the queryList not _userList, as the queryList is the query filtered _userList
parent
3dd84e2b8a
commit
5ed680e5ce
|
@ -158,9 +158,9 @@ module.exports = React.createClass({
|
||||||
var query;
|
var query;
|
||||||
if (this.state.addressSelected) {
|
if (this.state.addressSelected) {
|
||||||
var AddressTile = sdk.getComponent("elements.AddressTile");
|
var AddressTile = sdk.getComponent("elements.AddressTile");
|
||||||
// NOTE: _userList[0] is just a place holder until the selection logic is completed
|
// NOTE: this.state.queryList[0] is just a place holder until the selection logic is completed
|
||||||
query = (
|
query = (
|
||||||
<AddressTile user={this._userList[0]} canDismiss={true} onDismissed={this.onDismissed} />
|
<AddressTile user={this.state.queryList[0]} canDismiss={true} onDismissed={this.onDismissed} />
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
query = (
|
query = (
|
||||||
|
|
|
@ -37,6 +37,8 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
|
console.log("### D E B U G - user:");
|
||||||
|
console.log(this.props.user);
|
||||||
var BaseAvatar = sdk.getComponent('avatars.BaseAvatar');
|
var BaseAvatar = sdk.getComponent('avatars.BaseAvatar');
|
||||||
var TintableSvg = sdk.getComponent("elements.TintableSvg");
|
var TintableSvg = sdk.getComponent("elements.TintableSvg");
|
||||||
var name = this.props.user.displayName || this.props.user.userId
|
var name = this.props.user.displayName || this.props.user.userId
|
||||||
|
|
Loading…
Reference in New Issue