Skip to content

Commit c13eaa7

Browse files
fix: Setting DDPR Consents on iOS (#23)
1 parent 14b59ee commit c13eaa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/ios/CDVMParticle.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ - (void)setATTStatus:(CDVInvokedUrlCommand*)command {
7272
- (void)addGDPRConsentState:(CDVInvokedUrlCommand*)command {
7373
[self.commandDelegate runInBackground:^{
7474
NSMutableDictionary *serializedConsent = [command.arguments objectAtIndex:0];
75-
NSString *purpose = [command.arguments objectAtIndex:0];
75+
NSString *purpose = [command.arguments objectAtIndex:1];
7676

7777
MPGDPRConsent *consent = [CDVMParticle MPGDPRConsent:serializedConsent];
7878
MPConsentState *consentState = [[MParticle sharedInstance].identity.currentUser.consentState copy];

0 commit comments

Comments
 (0)