We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b96994 + 4dd520d commit beb8462Copy full SHA for beb8462
packages/sui-pde/src/adapters/optimizely/index.js
@@ -126,16 +126,15 @@ export default class OptimizelyAdapter {
126
* @returns {object} decision
127
*/
128
decide({name, attributes}) {
129
- if (!this._hasUserConsents) {
130
- return {enabled: false, flagKey: name}
131
- }
132
-
133
const user = this._optimizely.createUserContext(this._userId, {
134
...this._applicationAttributes,
135
...attributes
136
})
137
138
- return user.decide(name)
+ return user.decide(
+ name,
+ !this._hasUserConsents ? [optimizelySDK.OptimizelyDecideOption.DISABLE_DECISION_EVENT] : undefined
+ )
139
}
140
141
/**
0 commit comments