aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/view-login.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/view-login.go b/ui/view-login.go
index b26fb3a..9eb8226 100644
--- a/ui/view-login.go
+++ b/ui/view-login.go
@@ -112,10 +112,10 @@ func (view *LoginView) resolveWellKnown() {
if err != nil {
view.homeserver.SetText("")
view.Error(err.Error())
- return
+ } else if resp != nil {
+ view.homeserver.SetText(resp.Homeserver.BaseURL)
+ view.parent.Render()
}
- view.homeserver.SetText(resp.Homeserver.BaseURL)
- view.parent.Render()
}
func (view *LoginView) focusChanged(from, to mauview.Component) {