From 68f043534f48f2bec44289e646d462524542e291 Mon Sep 17 00:00:00 2001 From: stevan06v Date: Wed, 12 Jun 2024 21:41:51 +0200 Subject: [PATCH] fix: changed error messages for login & registe --- .../Authentication/LogIn/ViewModels/LoginViewModel.swift | 2 +- .../Authentication/Register/ViewModels/RegisterViewModel.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/features/Authentication/LogIn/ViewModels/LoginViewModel.swift b/core/features/Authentication/LogIn/ViewModels/LoginViewModel.swift index 737af46..e11cd05 100644 --- a/core/features/Authentication/LogIn/ViewModels/LoginViewModel.swift +++ b/core/features/Authentication/LogIn/ViewModels/LoginViewModel.swift @@ -39,7 +39,7 @@ class LoginViewModel: ObservableObject { self.viewModel.showAuthenticationView = false case let .failure(error): - self.message = "\(error.localizedDescription)" + self.message = "Wrong credentials!" self.showAlert = true } } diff --git a/core/features/Authentication/Register/ViewModels/RegisterViewModel.swift b/core/features/Authentication/Register/ViewModels/RegisterViewModel.swift index fc63f50..2e278ff 100644 --- a/core/features/Authentication/Register/ViewModels/RegisterViewModel.swift +++ b/core/features/Authentication/Register/ViewModels/RegisterViewModel.swift @@ -46,7 +46,7 @@ class RegisterViewModel: ObservableObject { self.viewModel.showAuthenticationView = false case let .failure(error): - self.message = "\(error.localizedDescription)" + self.message = "The email-address is already taken!" self.showAlert = true } }