From 2b3fd50f57343bd0e74fdaec6296333e27f77f98 Mon Sep 17 00:00:00 2001 From: cpilaszewicz <khutbvdw> Date: Tue, 10 Mar 2020 13:20:34 +0100 Subject: [PATCH] Fix small bug --- enzevalos_iphone/AuthenticationViewModel.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/enzevalos_iphone/AuthenticationViewModel.swift b/enzevalos_iphone/AuthenticationViewModel.swift index d9ec6d7c..87269545 100644 --- a/enzevalos_iphone/AuthenticationViewModel.swift +++ b/enzevalos_iphone/AuthenticationViewModel.swift @@ -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() } -- GitLab