Skip to content

Commit

Permalink
[iOS] Fix userId nil la-haus#28
Browse files Browse the repository at this point in the history
  • Loading branch information
Imgkl committed Jul 27, 2022
1 parent e84fe92 commit 76631ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/Classes/FlutterSegmentPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ - (void)identify:(FlutterMethodCall*)call result:(FlutterResult)result {
NSString *userId = call.arguments[@"userId"];
NSDictionary *traits = call.arguments[@"traits"];
NSDictionary *options = call.arguments[@"options"];


userId = [userId isEqual:[NSNull null]]? nil: userId;

[[SEGAnalytics sharedAnalytics] identify: userId
traits: traits
Expand Down

0 comments on commit 76631ec

Please sign in to comment.