Skip to content

Commit

Permalink
Add simple comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoldevila committed Jun 28, 2022
1 parent f81bb34 commit 042b74a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/telemetry/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class TelemetryPlugin implements Plugin<TelemetryPluginSetup, TelemetryPl
this.isOptedIn$ = timer(0, OPT_IN_POLL_INTERVAL_MS).pipe(
takeUntil(this.pluginStop$),
switchMap(() => this.getOptInStatus()),
startWith(this.isOptedIn),
startWith(this.isOptedIn), // feed the initial config value to the pipeline
filter((isOptedIn): isOptedIn is boolean => typeof isOptedIn === 'boolean'),
distinctUntilChanged(),
tap((optedIn) => (this.isOptedIn = optedIn)),
Expand Down

0 comments on commit 042b74a

Please sign in to comment.