We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0782ea6 commit d76f9fcCopy full SHA for d76f9fc
1 file changed
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/PasswordRecoveryView.swift
@@ -19,6 +19,7 @@ import SwiftUI
19
@MainActor
20
public struct PasswordRecoveryView {
21
@Environment(AuthService.self) private var authService
22
+ @Environment(\.reportError) private var reportError
23
@State private var email = ""
24
@State private var showSuccessSheet = false
25
@State private var sentEmail = ""
@@ -31,7 +32,7 @@ public struct PasswordRecoveryView {
31
32
sentEmail = email
33
showSuccessSheet = true
34
} catch {
- // Error already displayed via modal by AuthService
35
+ reportError?(error)
36
}
37
38
0 commit comments