Skip to content

Commit

Permalink
Changed alert
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-nirali-s committed Dec 16, 2024
1 parent 3a2522a commit d80d259
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Data/Data/Repository/UserRepository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class UserRepository: ObservableObject {
public func fetchUserBy(userID: String) async throws -> AppUser? {
return try await store.fetchUserBy(id: userID)
}

public func fetchUserBy(email: String) async throws -> AppUser? {
return try await store.fetchUserBy(email: email)
}
Expand Down
2 changes: 1 addition & 1 deletion Splito/UI/Login/EmailLogin/EmailLoginViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class EmailLoginViewModel: BaseViewModel, ObservableObject {
if let user = try await userRepository.fetchUserBy(email: email) {
if user.loginType != .Email {
isLoginInProgress = false
showAlertFor(title: "Error", message: "This account already exists with a different login method.")
showAlertFor(title: "Email Already in Use", message: "The email address is already associated with an existing account. Please use a different email or log in to your existing account.")
return
}

Expand Down

0 comments on commit d80d259

Please sign in to comment.