diff --git a/src/renderer/components/about-app.tsx b/src/renderer/components/about-app.tsx
index 768cfadf..0341de70 100644
--- a/src/renderer/components/about-app.tsx
+++ b/src/renderer/components/about-app.tsx
@@ -113,7 +113,6 @@ export default class AboutApp extends React.Component<{}, IState> {
sdaVersion,
sdaBuildNumber,
client,
- didUpdateHostname,
isValidHostname,
} = this.state;
@@ -146,12 +145,17 @@ export default class AboutApp extends React.Component<{}, IState> {
value: `${formattedSfeVersion} ${client}`,
},
];
- const closeButtonText =
- isValidHostname &&
- didUpdateHostname &&
- !this.state.finalConfig.url.includes(this.state.updatedHostname ?? '')
- ? i18n.t('Save and Restart', ABOUT_SYMPHONY_NAMESPACE)()
- : i18n.t('Close', ABOUT_SYMPHONY_NAMESPACE)();
+ const finalConfig = this.state.finalConfig?.url
+ ?.replace(/https:\/\//g, '')
+ ?.split('/')[0];
+ const updatedHostname = this.state.updatedHostname
+ ?.replace(/https:\/\//g, '')
+ ?.split('/')[0];
+ const isHostNamechanged =
+ finalConfig && updatedHostname && finalConfig !== updatedHostname;
+ const closeButtonText = isHostNamechanged
+ ? i18n.t('Save and Restart', ABOUT_SYMPHONY_NAMESPACE)()
+ : i18n.t('Close', ABOUT_SYMPHONY_NAMESPACE)();
const cancelText = i18n.t('Cancel', ABOUT_SYMPHONY_NAMESPACE)();
return (
@@ -192,7 +196,11 @@ export default class AboutApp extends React.Component<{}, IState> {
{this.state.isPodEditing && (