Refactor: Add trim() to login form
This commit is contained in:
parent
c64594c0a8
commit
35e24610af
1 changed files with 2 additions and 2 deletions
|
|
@ -31,8 +31,8 @@ export default function LoginPage(): JSX.Element {
|
||||||
|
|
||||||
function signIn() {
|
function signIn() {
|
||||||
const user: LoginType = {
|
const user: LoginType = {
|
||||||
username: username,
|
username: username.trim(),
|
||||||
password: password,
|
password: password.trim(),
|
||||||
};
|
};
|
||||||
onLogin(user)
|
onLogin(user)
|
||||||
.then((user) => {
|
.then((user) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue