From 9f868b01054d484eb00d362f2bae6354625ea34d Mon Sep 17 00:00:00 2001 From: NguyenTranHoangSym Date: Thu, 30 Mar 2023 11:27:26 +0700 Subject: [PATCH] SDA-4113: Update Error --- src/app/window-handler.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/window-handler.ts b/src/app/window-handler.ts index e9e74ec8..4a56ff26 100644 --- a/src/app/window-handler.ts +++ b/src/app/window-handler.ts @@ -553,8 +553,9 @@ export class WindowHandler { const defaultUrl = 'my.symphony.com'; const podUrl = this.userConfig.url ? this.userConfig.url - : !this.globalConfig.url.includes(defaultUrl) && - this.globalConfig.url; + : !this.globalConfig.url.includes(defaultUrl) + ? this.globalConfig.url + : undefined; this.mainWebContents.send('page-load-welcome', { locale: i18n.getLocale(), resources: i18n.loadedResources, @@ -562,8 +563,8 @@ export class WindowHandler { this.mainWebContents.send('welcome', { url: podUrl, message: '', - urlValid: !!userConfigUrl, - isPodConfigured: this.isPodConfigured && !!userConfigUrl, + urlValid: !!podUrl, + isPodConfigured: this.isPodConfigured && !!podUrl, isBrowserLoginEnabled: this.config.enableBrowserLogin, browserLoginAutoConnect: this.config.browserLoginAutoConnect, });