Skip to content
Snippets Groups Projects
Commit 2b3fd50f authored by cpilaszewicz's avatar cpilaszewicz
Browse files

Fix small bug

parent f4857a6a
No related branches found
No related tags found
4 merge requests!58Onboarding screens swift ui merge dev,!55WIP: Resolve "UI for gamifcation & stats",!47Provisional fix for OpenSSL 1.1+, needs testing,!39Resolve "Restructure Authentication"
......@@ -28,8 +28,8 @@ class AuthenticationViewModel : ObservableObject {
switch promise {
case AuthenticationModel.AuthenticationResult.Success :
self.authenticationSucceed()
case AuthenticationModel.AuthenticationResult.Error :
self.authenticationFailed(error: MailServerConnectionError.AuthenticationError)
case AuthenticationModel.AuthenticationResult.Error(let value) :
self.authenticationFailed(error: value)
case AuthenticationModel.AuthenticationResult.Timeout :
self.timeoutNotification()
}
......@@ -69,8 +69,8 @@ class AuthenticationViewModel : ObservableObject {
switch promise {
case AuthenticationModel.AuthenticationResult.Success :
self.authenticationSucceed()
case AuthenticationModel.AuthenticationResult.Error :
self.authenticationFailed(error: MailServerConnectionError.AuthenticationError)
case AuthenticationModel.AuthenticationResult.Error(let value) :
self.authenticationFailed(error: value)
case AuthenticationModel.AuthenticationResult.Timeout :
self.timeoutNotification()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment