diff --git a/src/components/views/elements/ServerPicker.tsx b/src/components/views/elements/ServerPicker.tsx index 5e6ef62504..51b18ac6c2 100644 --- a/src/components/views/elements/ServerPicker.tsx +++ b/src/components/views/elements/ServerPicker.tsx @@ -53,8 +53,10 @@ const onHelpClick = () => { }; const ServerPicker = ({ title, dialogTitle, serverConfig, onServerConfigChange }: IProps) => { + const disableCustomUrls = SdkConfig.get()["disable_custom_urls"]; + let editBtn; - if (!SdkConfig.get()["disable_custom_urls"] && onServerConfigChange) { + if (!disableCustomUrls && onServerConfigChange) { const onClick = () => { showPickerDialog(dialogTitle, serverConfig, (config?: ValidatedServerConfig) => { if (config) { @@ -83,7 +85,7 @@ const ServerPicker = ({ title, dialogTitle, serverConfig, onServerConfigChange } return

{ title || _t("Homeserver") }

- + { !disableCustomUrls ? : null } { serverName } { editBtn } { desc }