From 857e5b54682166dfa508c939d60106c2dde8f9d0 Mon Sep 17 00:00:00 2001 From: Ridwan Aditama Date: Tue, 21 May 2024 09:19:35 +0200 Subject: [PATCH] fix: defaults intercom remote-config to false (#4521) --- src/remote-config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/remote-config.ts b/src/remote-config.ts index a59d69eb35..ad4ffd0dc8 100644 --- a/src/remote-config.ts +++ b/src/remote-config.ts @@ -65,7 +65,7 @@ export type RemoteConfig = { export const defaultRemoteConfig: RemoteConfig = { enable_ticketing: !!JSON.parse(ENABLE_TICKETING || 'false'), - enable_intercom: true, + enable_intercom: false, feedback_questions: '', must_upgrade_ticketing: false, customer_service_url: CUSTOMER_SERVICE_URL, @@ -129,7 +129,7 @@ export type RemoteConfigKeys = keyof RemoteConfig; export function getConfig(): RemoteConfig { const values = remoteConfig().getAll(); const enable_ticketing = values['enable_ticketing']?.asBoolean() ?? false; - const enable_intercom = values['enable_intercom']?.asBoolean() ?? true; + const enable_intercom = values['enable_intercom']?.asBoolean() ?? false; const enable_flex_tickets = values['enable_flex_tickets']?.asBoolean() ?? defaultRemoteConfig.enable_flex_tickets;