mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2024-11-16 22:29:24 +08:00
Make registration properly reset forms once register button is pressed
This commit is contained in:
parent
679fdc96e8
commit
c3c5fafc73
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,9 @@ export default function Register() {
|
||||||
variant="contained"
|
variant="contained"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
setUser({
|
setUser({
|
||||||
...user,
|
email: "",
|
||||||
|
username: "",
|
||||||
|
password: "",
|
||||||
});
|
});
|
||||||
if (await UserRegister(user)) {
|
if (await UserRegister(user)) {
|
||||||
setFeedback(
|
setFeedback(
|
||||||
|
|
Loading…
Reference in a new issue