Skip to content

Commit 8d19422

Browse files
Fixed bug found on changeDeviceId by Subodh Jumle
1 parent afb3ffa commit 8d19422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/src/CountlyReactNative.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ @implementation CountlyReactNative
168168
RCT_EXPORT_METHOD(changeDeviceId:(NSArray*)arguments)
169169
{
170170
NSString* newDeviceID = [arguments objectAtIndex:0];
171-
NSString* onServerString = [arguments objectAtIndex:0];
171+
NSString* onServerString = [arguments objectAtIndex:1];
172172
if ([onServerString isEqual: @"1"]) {
173173
[Countly.sharedInstance setNewDeviceID:newDeviceID onServer: YES];
174174
}else{

0 commit comments

Comments
 (0)