Refactor: Add trim() to signUp page
This commit is contained in:
parent
35e24610af
commit
4739372e20
1 changed files with 2 additions and 2 deletions
|
|
@ -33,8 +33,8 @@ export default function SignUp(): JSX.Element {
|
|||
function handleSignup(): void {
|
||||
const { username, password } = inputState;
|
||||
const newUser: UserInputType = {
|
||||
username,
|
||||
password,
|
||||
username: username.trim(),
|
||||
password: password.trim(),
|
||||
};
|
||||
addUser(newUser)
|
||||
.then((user) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue