Skip to content

Commit b6a4566

Browse files
authored
Merge pull request #57 from OmarVector/patch-1
Fix: JsonUnwrapper on iOS has incorrect key for VendorGrant
2 parents a3774b8 + 69a0608 commit b6a4566

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assets/ConsentManagementProvider/Scripts/json/JsonUnwrapper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ private static GdprConsent UnwrapGdprConsent(GdprConsentWrapper wrapped)
271271

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

274-
if (vendorGrantValue["granted"] != null)
275-
isGranted = vendorGrantValue["granted"].ToObject<bool>();
274+
if (vendorGrantValue["vendorGrant"] != null)
275+
isGranted = vendorGrantValue["vendorGrant"].ToObject<bool>();
276276

277277
if (vendorGrantValue["purposeGrants"] != null)
278278
{
@@ -410,4 +410,4 @@ private static UsnatConsent UnwrapUsnatConsent(UsnatConsentWrapper wrapped)
410410
}
411411
#endregion
412412
}
413-
}
413+
}

0 commit comments

Comments
 (0)