about summary refs log tree commit diff
path: root/src/view/screens/Settings/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/screens/Settings/index.tsx')
-rw-r--r--src/view/screens/Settings/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/screens/Settings/index.tsx b/src/view/screens/Settings/index.tsx
index 470bace87..a0e4ff60f 100644
--- a/src/view/screens/Settings/index.tsx
+++ b/src/view/screens/Settings/index.tsx
@@ -791,7 +791,7 @@ export function SettingsScreen({}: Props) {
             <TextField.Input
               value={dmServiceUrl}
               onChangeText={(text: string) => {
-                if (text.endsWith('/')) {
+                if (text.length > 9 && text.endsWith('/')) {
                   text = text.slice(0, -1)
                 }
                 setDmServiceUrl(text)