Don't show homeserver as selected when one isn't actually selected. Fixes #57

This commit is contained in:
Tulir Asokan 2019-08-11 15:36:24 +03:00
parent e82980c456
commit c442ca4d86

View File

@ -91,7 +91,7 @@ class Client extends BaseMainView {
return this.state.homeserver
? this.homeserverEntry([this.props.ctx.homeserversByURL[this.state.homeserver],
this.state.homeserver])
: this.homeserverOptions[0] || {}
: {}
}
homeserverEntry = ([serverName, serverURL]) => serverURL && {