From bd6e5b4333aa7cd2413f2abeb5147b29b22e979c Mon Sep 17 00:00:00 2001 From: HARSHIT SINHA <47042785+hsinha610@users.noreply.github.com> Date: Tue, 30 Jul 2024 17:08:13 +0530 Subject: [PATCH] Update Instance+Activation.kt --- src/main/kotlin/com/featurevisor/sdk/Instance+Activation.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/featurevisor/sdk/Instance+Activation.kt b/src/main/kotlin/com/featurevisor/sdk/Instance+Activation.kt index f2ba1da..3454b0b 100644 --- a/src/main/kotlin/com/featurevisor/sdk/Instance+Activation.kt +++ b/src/main/kotlin/com/featurevisor/sdk/Instance+Activation.kt @@ -12,9 +12,9 @@ fun FeaturevisorInstance.activate(featureKey: FeatureKey, context: Context = emp val finalContext = interceptContext?.invoke(context) ?: context val captureContext = mutableMapOf() val attributesForCapturing = datafileReader.getAllAttributes() - .filter { it.value.capture == true } + .filter { it.capture == true } - attributesForCapturing.forEach { (_, attribute) -> + attributesForCapturing.forEach { attribute -> finalContext[attribute.key]?.let { captureContext[attribute.key] = it }