Reset the form on submit
This commit is contained in:
parent
6f086c478f
commit
548b4c1a61
1 changed files with 4 additions and 2 deletions
|
@ -68,7 +68,8 @@ const Passkeys = () => {
|
|||
|
||||
const handleSubmit = async (
|
||||
inputValue: string,
|
||||
setFieldError: (errorMessage: string) => void
|
||||
setFieldError: (errorMessage: string) => void,
|
||||
resetForm: (nextState?: unknown) => void
|
||||
) => {
|
||||
let response: {
|
||||
options: {
|
||||
|
@ -119,7 +120,8 @@ const Passkeys = () => {
|
|||
return;
|
||||
}
|
||||
|
||||
init();
|
||||
await init();
|
||||
resetForm();
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Reference in a new issue