diff --git a/Sources/mParticle-Appboy/MPKitAppboy.m b/Sources/mParticle-Appboy/MPKitAppboy.m index 0397bfb..5b89d70 100644 --- a/Sources/mParticle-Appboy/MPKitAppboy.m +++ b/Sources/mParticle-Appboy/MPKitAppboy.m @@ -1061,7 +1061,7 @@ - (void)updateConsent { // Update from mParticle consent if (self.configuration && self.configuration[MPConsentMappingSDKKey]) { - // Retrieve the array of Consent Map Dicitonaries from the Config + // Retrieve the array of Consent Map Dictionaries from the Config NSData *objectData = [self.configuration[MPConsentMappingSDKKey] dataUsingEncoding:NSUTF8StringEncoding]; NSArray *consentMappingArray = [NSJSONSerialization JSONObjectWithData:objectData options:NSJSONReadingMutableContainers @@ -1075,8 +1075,7 @@ - (void)updateConsent { MPGDPRConsent *consent = userConsentMap[consentPurpose.lowercaseString]; if ([brazeConsentName isEqualToString:MPGoogleAdUserDataKey]) { [appboyInstance.user setCustomAttributeWithKey:BGoogleAdUserDataKey boolValue:consent.consented]; - } - if ([brazeConsentName isEqualToString:MPGoogleAdPersonalizationKey]) { + } else if ([brazeConsentName isEqualToString:MPGoogleAdPersonalizationKey]) { [appboyInstance.user setCustomAttributeWithKey:BGoogleAdPersonalizationKey boolValue:consent.consented]; } }