diff --git a/src/app/version-handler.ts b/src/app/version-handler.ts index be002e5c..a14dc29d 100644 --- a/src/app/version-handler.ts +++ b/src/app/version-handler.ts @@ -182,15 +182,10 @@ class VersionHandler { /* Get SFE version */ let urlSfeVersion: string; - if (mainUrl?.includes('bff')) { - urlSfeVersion = mainUrl?.includes('/daily/') - ? `${protocol}//${hostname}/bff-daily/daily/version.json` - : `${protocol}//${hostname}/client-bff/version.json`; - this.versionInfo.sfeClientType = '2.0'; - } else { - urlSfeVersion = `${protocol}//${hostname}/client/version.json`; - this.versionInfo.sfeClientType = '1.5'; - } + urlSfeVersion = mainUrl?.includes('/daily/') + ? `${protocol}//${hostname}/bff-daily/daily/version.json` + : `${protocol}//${hostname}/client-bff/version.json`; + this.versionInfo.sfeClientType = '2.0'; logger.info( `version-handler: Trying to get SFE version info for the URL: ${urlSfeVersion}`, ); diff --git a/src/renderer/components/about-app.tsx b/src/renderer/components/about-app.tsx index a8e50b37..9b8f8100 100644 --- a/src/renderer/components/about-app.tsx +++ b/src/renderer/components/about-app.tsx @@ -35,6 +35,7 @@ interface IState { } const ABOUT_SYMPHONY_NAMESPACE = 'AboutSymphony'; +const SFE_CLIENT_TYPE_NAME = 'SFE-Lite'; /** * Window that display app version and copyright info @@ -85,7 +86,6 @@ export default class AboutApp extends React.Component<{}, IState> { buildNumber, hostname, sfeVersion, - sfeClientType, sdaVersion, sdaBuildNumber, client, @@ -98,7 +98,6 @@ export default class AboutApp extends React.Component<{}, IState> { )()} \xA9 ${new Date().getFullYear()} ${appName}`; const podVersion = `${clientVersion} (${buildNumber})`; const sdaVersionBuild = `${sdaVersion} (${sdaBuildNumber})`; - let sfeClientTypeName = 'SFE-Lite'; const symphonySectionItems = [ { key: 'POD:', @@ -113,15 +112,11 @@ export default class AboutApp extends React.Component<{}, IState> { value: sdaVersionBuild, }, { - key: `${sfeClientTypeName}:`, + key: `${SFE_CLIENT_TYPE_NAME}:`, value: `${sfeVersion} ${client}`, }, ]; - if (sfeClientType !== '1.5') { - sfeClientTypeName = 'SFE-Lite'; - } - return (