Skip to content

Commit bc4e84e

Browse files
chore: make MFA info identifiable
1 parent 3100258 commit bc4e84e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/MFAManagementView.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
import FirebaseAuth
1616
import SwiftUI
1717

18+
extension MultiFactorInfo: Identifiable {
19+
public var id: String { uid }
20+
}
21+
1822
@MainActor
1923
public struct MFAManagementView {
2024
@Environment(AuthService.self) private var authService
@@ -131,7 +135,7 @@ extension MFAManagementView: View {
131135
.font(.headline)
132136
.padding(.horizontal)
133137

134-
ForEach(enrolledFactors, id: \.uid) { factor in
138+
ForEach(enrolledFactors) { factor in
135139
factorRow(factor: factor)
136140
}
137141

0 commit comments

Comments
 (0)