Skip to content

Commit

Permalink
Merge pull request #464 from hmcts/ld-usereport
Browse files Browse the repository at this point in the history
Initialise LD with useReport
  • Loading branch information
RiteshHMCTS committed Jul 10, 2024
2 parents 247e689 + 1b9c4a0 commit fb86865
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/rpx-xui-common-lib",
"version": "2.0.21",
"version": "2.0.22-ld-usereport",
"engines": {
"node": ">=18.19.0"
},
Expand Down
2 changes: 1 addition & 1 deletion projects/exui-common-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/rpx-xui-common-lib",
"version": "2.0.21",
"version": "2.0.22-ld-usereport",
"peerDependencies": {
"launchdarkly-js-client-sdk": "^2.15.2",
"ngx-pagination": "^3.2.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class LaunchDarklyService implements FeatureToggleService {
this.ready.next(false);
this.user = user;
this.clientId = clientId;
this.client = initialize(this.clientId, this.user, {});
this.client = initialize(this.clientId, this.user, { useReport: true });
this.client.on('ready', () => {
this.client.identify(this.user).then(() => this.ready.next(true));
});
Expand Down

0 comments on commit fb86865

Please sign in to comment.