From 3ce910fd54d415d0fd111579ba4c8f6aee70159f Mon Sep 17 00:00:00 2001 From: "ferran.simon" Date: Mon, 22 Jun 2026 10:21:31 +0200 Subject: [PATCH] fix(packages/sui-pde): Pass application attributes when getting feature variables --- packages/sui-pde/src/adapters/optimizely/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/sui-pde/src/adapters/optimizely/index.js b/packages/sui-pde/src/adapters/optimizely/index.js index ac62cf1d0..844061b7c 100644 --- a/packages/sui-pde/src/adapters/optimizely/index.js +++ b/packages/sui-pde/src/adapters/optimizely/index.js @@ -217,7 +217,10 @@ export default class OptimizelyAdapter { * @returns {object} */ getAllFeatureVariables({featureKey, attributes}) { - return this._optimizely.getAllFeatureVariables(featureKey, this._userId, attributes) + return this._optimizely.getAllFeatureVariables(featureKey, this._userId, { + ...this._applicationAttributes, + ...attributes + }) } updateConsents({hasUserConsents}) {