Skip to content

Commit

Permalink
Merge pull request #57 from OmarVector/patch-1
Browse files Browse the repository at this point in the history
Fix: JsonUnwrapper on iOS has incorrect key for VendorGrant
  • Loading branch information
Nevazhnovu authored May 24, 2024
2 parents a3774b8 + 69a0608 commit b6a4566
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ private static GdprConsent UnwrapGdprConsent(GdprConsentWrapper wrapped)

var vendorGrantValue = JToken.FromObject(vendorGrantWrapper.Value);

if (vendorGrantValue["granted"] != null)
isGranted = vendorGrantValue["granted"].ToObject<bool>();
if (vendorGrantValue["vendorGrant"] != null)
isGranted = vendorGrantValue["vendorGrant"].ToObject<bool>();

if (vendorGrantValue["purposeGrants"] != null)
{
Expand Down Expand Up @@ -410,4 +410,4 @@ private static UsnatConsent UnwrapUsnatConsent(UsnatConsentWrapper wrapped)
}
#endregion
}
}
}

0 comments on commit b6a4566

Please sign in to comment.