Skip to content

Commit

Permalink
fix: changed error messages for login & registe
Browse files Browse the repository at this point in the history
  • Loading branch information
stevan06v committed Jun 12, 2024
1 parent bb37c73 commit 68f0435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 68f0435

Please sign in to comment.