From 69866a4275ffb15f027f1fceac738c52e825599c Mon Sep 17 00:00:00 2001 From: Jeremy Zimmerman Date: Tue, 25 Apr 2023 11:46:45 -0400 Subject: [PATCH] Updated logic to support client display name. --- src/layouts/entry-page/entry-page.vue | 5 +++-- src/store/index.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/layouts/entry-page/entry-page.vue b/src/layouts/entry-page/entry-page.vue index c1a2d011..db24c722 100644 --- a/src/layouts/entry-page/entry-page.vue +++ b/src/layouts/entry-page/entry-page.vue @@ -74,6 +74,7 @@ populateISSConfigValues(data) { this.mainStore.issConfig.clientName = data.accountName; + this.mainStore.issConfig.clientDisplayName = data.accountName; // Defaults to use the client name. this.mainStore.issConfig.accountNumber = data.accountNumber; this.mainStore.issConfig.styleSheet = data.styleSheet; this.mainStore.issConfig.isCoverageEnabled = data.coverageEnabled; @@ -91,9 +92,9 @@ this.mainStore.issConfig.enableTPAFlow = true; } - if ( clientFlags.clientDisplayName != null ) + if ( clientFlags.ClientDisplayName != null ) { - this.mainStore.issConfig.clientDisplayName = clientFlags.clientDisplayName; + this.mainStore.issConfig.clientDisplayName = clientFlags.ClientDisplayName; } } catch ( e ) diff --git a/src/store/index.js b/src/store/index.js index eec2a8c4..371175bf 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -97,7 +97,7 @@ const getDefaultState = () => { }, issConfig: { clientName: "Generic Insurance", // this is the default and will be overriden by the client's name - clientDisplayName: "Generic Insurance", + clientDisplayName: "Generic Insurance", // this is the default and will be overriden by the client's name or client display name. styleSheet: "", accountNumber: 0, isCoverageEnabled: false, // Indicates if we should be calling coverage on this flow.