From 2bd598f7f8fb0a0c86437367da98aa318bf2c7ad Mon Sep 17 00:00:00 2001 From: ajbura Date: Fri, 4 Feb 2022 11:43:39 +0530 Subject: [PATCH] Trim homserver in Auth component Signed-off-by: ajbura --- src/app/templates/auth/Auth.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/templates/auth/Auth.jsx b/src/app/templates/auth/Auth.jsx index ceaf9f7..33d2152 100644 --- a/src/app/templates/auth/Auth.jsx +++ b/src/app/templates/auth/Auth.jsx @@ -106,7 +106,7 @@ function Homeserver({ onChange }) { const { value } = e.target; setProcess({ isLoading: false }); debounce._(async () => { - setHs({ selected: value, list: hs.list }); + setHs({ selected: value.trim(), list: hs.list }); }, 700)(); };