feat: update signup and OTP verification forms to enhance error handling and state management
This commit is contained in:
@@ -34,6 +34,9 @@ export default function SignUpForm() {
|
||||
|
||||
const [actionState, action, isPending] = React.useActionState(signup, {
|
||||
message: "",
|
||||
db_error: "",
|
||||
errors: undefined,
|
||||
payload: new FormData(),
|
||||
});
|
||||
|
||||
React.useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user