Skip to content

Commit fb92bc8

Browse files
committed
Revert "Gemini recommendation: use reportError inside the catch block"
This reverts commit d76f9fc.
1 parent d76f9fc commit fb92bc8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/PasswordRecoveryView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import SwiftUI
1919
@MainActor
2020
public struct PasswordRecoveryView {
2121
@Environment(AuthService.self) private var authService
22-
@Environment(\.reportError) private var reportError
2322
@State private var email = ""
2423
@State private var showSuccessSheet = false
2524
@State private var sentEmail = ""
@@ -32,7 +31,7 @@ public struct PasswordRecoveryView {
3231
sentEmail = email
3332
showSuccessSheet = true
3433
} catch {
35-
reportError?(error)
34+
// Error already displayed via modal by AuthService
3635
}
3736
}
3837
}

0 commit comments

Comments
 (0)