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() {
|
||||
const user: LoginType = {
|
||||
username: username,
|
||||
password: password,
|
||||
username: username.trim(),
|
||||
password: password.trim(),
|
||||
};
|
||||
onLogin(user)
|
||||
.then((user) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue