From 4f44fa4a7ece3b96fc718478da3dca6e567fa3e7 Mon Sep 17 00:00:00 2001 From: Seth Silesky <5115498+silesky@users.noreply.github.com> Date: Tue, 21 Jan 2025 11:57:54 -0600 Subject: [PATCH] wip --- packages/browser/src/plugins/ajs-destination/utils.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/browser/src/plugins/ajs-destination/utils.ts b/packages/browser/src/plugins/ajs-destination/utils.ts index e448c3852..ab8eccaee 100644 --- a/packages/browser/src/plugins/ajs-destination/utils.ts +++ b/packages/browser/src/plugins/ajs-destination/utils.ts @@ -1,5 +1,5 @@ -import { IntegrationsOptions } from '@segment/analytics-core' import { RemoteIntegrationSettings } from '../..' +import { IntegrationsInitOptions } from '../../browser/settings' export const isInstallableIntegration = ( name: string, @@ -20,13 +20,10 @@ export const isInstallableIntegration = ( export const isDisabledIntegration = ( integrationName: string, - globalIntegrations: IntegrationsOptions + integrations: IntegrationsInitOptions ) => { const allDisableAndNotDefined = - globalIntegrations.All === false && - globalIntegrations[integrationName] === undefined + integrations.All === false && integrations[integrationName] === undefined - return ( - globalIntegrations[integrationName] === false || allDisableAndNotDefined - ) + return integrations[integrationName] === false || allDisableAndNotDefined }