From c743c0e6d344de2cf0fbb57d22e9fd9ca7cba073 Mon Sep 17 00:00:00 2001 From: Alexander Sapountzis Date: Wed, 11 Dec 2024 10:48:14 -0500 Subject: [PATCH] Cast Feature Flag as Boolean --- src/sdkToEventsApiConverter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdkToEventsApiConverter.ts b/src/sdkToEventsApiConverter.ts index 4ea73032..f4349bdb 100644 --- a/src/sdkToEventsApiConverter.ts +++ b/src/sdkToEventsApiConverter.ts @@ -128,7 +128,7 @@ export function convertEvents( }; } - const isIntegrationCaptureEnabled: boolean = getFeatureFlag && getFeatureFlag(CaptureIntegrationSpecificIds); + const isIntegrationCaptureEnabled: boolean = getFeatureFlag && Boolean(getFeatureFlag(CaptureIntegrationSpecificIds)); if (isIntegrationCaptureEnabled) { const capturedPartnerIdentities: PartnerIdentities = _IntegrationCapture?.getClickIdsAsPartnerIdentities(); if (!isEmpty(capturedPartnerIdentities)) {