Skip to content

Commit

Permalink
Fixed Spelling mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiDixit09 committed Feb 14, 2024
1 parent 5f4dbcb commit 6a61813
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BranchSDK/BNCPreferenceHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
static NSString * const BRANCH_PREFS_KEY_LOG_IAP_AS_EVENTS = @"bnc_log_iap_as_events";

static NSString * const BRANCH_PREFS_KEY_DMA_EEA = @"bnc_dma_eea";
static NSString * const BRANCH_PREFS_KEY_DMA_AD_PEROSALIZATION = @"bnc_dma_ad_personalization";
static NSString * const BRANCH_PREFS_KEY_DMA_AD_PERSONALIZATION = @"bnc_dma_ad_personalization";
static NSString * const BRANCH_PREFS_KEY_DMA_AD_USER_DATA = @"bnc_dma_ad_user_data";


Expand Down Expand Up @@ -823,7 +823,7 @@ - (void) setEeaRegion:(BOOL)isEEARegion {

- (BOOL) adPersonalizationConsent {
@synchronized(self) {
NSNumber *b = (id) [self readObjectFromDefaults:BRANCH_PREFS_KEY_DMA_AD_PEROSALIZATION];
NSNumber *b = (id) [self readObjectFromDefaults:BRANCH_PREFS_KEY_DMA_AD_PERSONALIZATION];
if ([b isKindOfClass:NSNumber.class]) return [b boolValue];
return false;
}
Expand All @@ -832,7 +832,7 @@ - (BOOL) adPersonalizationConsent {
- (void) setAdPersonalizationConsent:(BOOL)hasConsent {
@synchronized(self) {
NSNumber *b = [NSNumber numberWithBool:hasConsent];
[self writeObjectToDefaults:BRANCH_PREFS_KEY_DMA_AD_PEROSALIZATION value:b];
[self writeObjectToDefaults:BRANCH_PREFS_KEY_DMA_AD_PERSONALIZATION value:b];
}
}

Expand Down

0 comments on commit 6a61813

Please sign in to comment.