Skip to content

Commit

Permalink
fix: defaults intercom remote-config to false (#4521)
Browse files Browse the repository at this point in the history
  • Loading branch information
reidzeibel committed May 21, 2024
1 parent 60cf786 commit 857e5b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/remote-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 857e5b5

Please sign in to comment.