Updated logic to support client display name.

This commit is contained in:
Jeremy Zimmerman 2023-04-25 11:46:45 -04:00
parent 97280de5bb
commit 69866a4275
2 changed files with 4 additions and 3 deletions

View file

@ -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 )

View file

@ -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.