mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Increase the debounce time on username validation
This commit is contained in:
parent
5ec5916cc8
commit
154b619d2d
2 changed files with 4 additions and 5 deletions
|
|
@ -27,7 +27,7 @@ export function ConfirmProfileModal(): JSX.Element {
|
|||
setUsername(event.target.value)
|
||||
setTimeout(() => {
|
||||
setDebouncedUsername(event.target.value)
|
||||
}, 400)
|
||||
}, 2000)
|
||||
},
|
||||
[]
|
||||
)
|
||||
|
|
|
|||
|
|
@ -18,9 +18,8 @@ export function EmailSignup(): JSX.Element {
|
|||
const [password, setPassword] = useState<string | undefined>()
|
||||
const [fullname, setFullname] = useState<string | undefined>()
|
||||
const [username, setUsername] = useState<string | undefined>()
|
||||
const [debouncedUsername, setDebouncedUsername] = useState<
|
||||
string | undefined
|
||||
>()
|
||||
const [debouncedUsername, setDebouncedUsername] =
|
||||
useState<string | undefined>()
|
||||
const [errorMessage, setErrorMessage] = useState<string | undefined>()
|
||||
|
||||
useEffect(() => {
|
||||
|
|
@ -41,7 +40,7 @@ export function EmailSignup(): JSX.Element {
|
|||
setUsername(event.target.value)
|
||||
setTimeout(() => {
|
||||
setDebouncedUsername(event.target.value)
|
||||
}, 400)
|
||||
}, 2000)
|
||||
},
|
||||
[]
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue