Skip to content

Commit

Permalink
Fix exception in log message (#1768)
Browse files Browse the repository at this point in the history
  • Loading branch information
andywilkinshmcts authored Sep 4, 2024
1 parent 012c384 commit 2d557a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 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/ccd-case-ui-toolkit",
"version": "7.0.61",
"version": "7.0.62",
"engines": {
"node": ">=18.19.0"
},
Expand Down
2 changes: 1 addition & 1 deletion projects/ccd-case-ui-toolkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/ccd-case-ui-toolkit",
"version": "7.0.61",
"version": "7.0.62",
"engines": {
"node": ">=18.19.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ export class WorkAllocationService {

private isWAEnabled(jurisdiction?: string, caseType?: string): boolean {
this.features = this.appConfig.getWAServiceConfig();
const ftstr = JSON.stringify(this.features);
this.appConfig.logMessage(`isWAEnabled: wa-service-config returning ${ftstr.length > 0}`);
if (this.features) {
const ftstr = JSON.stringify(this.features);
this.appConfig?.logMessage(`isWAEnabled: wa-service-config returning ${ftstr?.length > 0}`);
} else {
this.appConfig?.logMessage(`isWAEnabled: wa-service-config returning no features`);
return false;
}
let enabled = false;
if (!jurisdiction || !caseType) {
const caseInfo = JSON.parse(this.sessionStorageService.getItem('caseInfo'));
Expand Down

0 comments on commit 2d557a4

Please sign in to comment.