Skip to content

Commit

Permalink
fix(auth, ios): factorId nil check (#7541)
Browse files Browse the repository at this point in the history
  • Loading branch information
vargajacint authored Jan 6, 2024
1 parent 2c6905e commit b1cee9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth/ios/RNFBAuth/RNFBAuthModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ - (NSDictionary *)firebaseUserToDict:(FIRUser *)user {
[[[NSISO8601DateFormatter alloc] init] stringFromDate:hint.enrollmentDate];
[enrolledFactors addObject:@{
@"uid" : hint.UID,
@"factorId" : [self getJSFactorId:(hint.factorID)],
@"factorId" : hint.factorID == nil ? [NSNull null] : [self getJSFactorId:(hint.factorID)],
@"displayName" : hint.displayName == nil ? [NSNull null] : hint.displayName,
@"enrollmentDate" : enrollmentDate,
}];
Expand Down

1 comment on commit b1cee9a

@vercel
Copy link

@vercel vercel bot commented on b1cee9a Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.