Trim homserver in Auth component

Signed-off-by: ajbura <ajbura@gmail.com>
This commit is contained in:
ajbura 2022-02-04 11:43:39 +05:30
parent b008c5f07f
commit 2bd598f7f8

View file

@ -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)();
};