Skip to content

Commit

Permalink
Cast Feature Flag as Boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
alexs-mparticle committed Dec 11, 2024
1 parent d145d6a commit c743c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdkToEventsApiConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit c743c0e

Please sign in to comment.