diff options
| -rw-r--r-- | ios/MullvadVPN/LoginViewController.swift | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ios/MullvadVPN/LoginViewController.swift b/ios/MullvadVPN/LoginViewController.swift index faac384f3f..e44ac1e454 100644 --- a/ios/MullvadVPN/LoginViewController.swift +++ b/ios/MullvadVPN/LoginViewController.swift @@ -281,11 +281,7 @@ private extension LoginState { return NSLocalizedString("Checking account number", comment: "") case .failure(let error): - if case .login(.invalidAccount) = error { - return NSLocalizedString("Invalid account number", tableName: "Login", comment: "") - } else { - return NSLocalizedString("Internal error", tableName: "Login", comment: "") - } + return error.failureReason ?? "" case .success: return NSLocalizedString("Correct account number", comment: "") |
