Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/Extensions/UsercentricsOptions+Dict.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public extension UsercentricsOptions {
options.networkMode = NetworkMode.initialize(from: networkModeValue)
}

if let consentMediationValue = dictionary["networkMode"] as? Bool {
if let consentMediationValue = dictionary["consentMediation"] as? Bool {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[REFACTORING] The patch correctly updates the key from 'networkMode' to 'consentMediation', which aligns with the expected mapping (see reference code block at ios/Extensions/UsercentricsOptions+Dict.swift, lines 28-34 and sample tests). Ensure that any associated logic or tests that depend on 'consentMediation' properly reflect this change to avoid potential regressions.

options.consentMediation = consentMediationValue
}

Expand Down
Loading