diff --git a/libs/remix-ui/settings/src/lib/github-settings.tsx b/libs/remix-ui/settings/src/lib/github-settings.tsx index 134b967230..5a873290d7 100644 --- a/libs/remix-ui/settings/src/lib/github-settings.tsx +++ b/libs/remix-ui/settings/src/lib/github-settings.tsx @@ -25,7 +25,8 @@ export function GithubSettings (props: GithubSettingsProps) { }, [props.config]) const handleChangeTokenState = (event) => { - setGithubToken(event.target.value) + const token = event.target.value ? event.target.value.trim() : event.target.value + setGithubToken(token) } const handleChangeUserNameState = (event) => {