Skip to content

Commit

Permalink
IAB has bigger priority than PB (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoalex5 authored Nov 12, 2020
1 parent a1eac3f commit 9ca2c2f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/Targeting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ import CoreLocation
get {
var savedConsent: String?

if let pbString = StorageUtils.pbGdprConsent() {
savedConsent = pbString
} else if let iabString = StorageUtils.iabGdprConsent() {
if let iabString = StorageUtils.iabGdprConsent() {
savedConsent = iabString
} else if let pbString = StorageUtils.pbGdprConsent() {
savedConsent = pbString
}

return savedConsent
Expand All @@ -191,10 +191,10 @@ import CoreLocation
get {
var savedPurposeConsents: String?

if let pbString = StorageUtils.pbPurposeConsents() {
savedPurposeConsents = pbString
} else if let iabString = StorageUtils.iabPurposeConsents() {
if let iabString = StorageUtils.iabPurposeConsents() {
savedPurposeConsents = iabString
} else if let pbString = StorageUtils.pbPurposeConsents() {
savedPurposeConsents = pbString
}

return savedPurposeConsents
Expand Down

0 comments on commit 9ca2c2f

Please sign in to comment.