Skip to content

Commit

Permalink
Merge pull request #27 from nishiths23/master
Browse files Browse the repository at this point in the history
Fixing crash on ios
  • Loading branch information
haoliu-amp authored Nov 4, 2020
2 parents d3997fa + ded79b3 commit 9d611a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/amplitude.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Amplitude extends _Amplitude {
Map<String, dynamic> properties = _baseProperties();
properties['userId'] = userId;
if (startNewSession != null) {
properties['startNewSession'] = userId;
properties['startNewSession'] = startNewSession;
}

return await _channel.invokeMethod('setUserId', jsonEncode(properties));
Expand Down

0 comments on commit 9d611a8

Please sign in to comment.