diff --git a/web/src/components/Settings.jsx b/web/src/components/Settings.jsx index f54a944..3e5cb5c 100644 --- a/web/src/components/Settings.jsx +++ b/web/src/components/Settings.jsx @@ -40,8 +40,8 @@ export default function SettingsDialog() { .catch(() => setShow(false)) }, [tsHost]) - const onInputHost = event => { - const host = event.target.value + const onInputHost = ({ target: { value } }) => { + const host = value.replace(/\/$/gi, '') setTorrServerHost(host) setTSHost(host) }