diff --git a/src/LoginPage.cpp b/src/LoginPage.cpp
index 624987387555fa50f98483462a5c9b7fbebe646f..39d0f9d6d2c35c3d531d116beaeef5f2ac17968b 100644
--- a/src/LoginPage.cpp
+++ b/src/LoginPage.cpp
@@ -316,11 +316,11 @@ LoginPage::checkHomeserverVersion()
                                     emit versionOkCb(LoginMethod::Password);
 
                             LoginMethod loginMethod = LoginMethod::Password;
-                            for(const auto &flow : flows.flows) {
-                                if (flow.type == mtx::user_interactive::auth_types::sso) {
-                                    loginMethod = LoginMethod::SSO;
-                                    break;
-                                }
+                            for (const auto &flow : flows.flows) {
+                                    if (flow.type == mtx::user_interactive::auth_types::sso) {
+                                            loginMethod = LoginMethod::SSO;
+                                            break;
+                                    }
                             }
                             emit versionOk(loginMethod);
                     });