Skip to content

Commit 45bf63f

Browse files
committed
fix: reset
1 parent a920d6e commit 45bf63f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

apps/web-app/src/routes/(auth)/_layout.login.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,12 @@ function RouteComponent() {
7979
});
8080

8181
useEffect(() => {
82-
if (invitation.data?.hasUser && invitation.data?.email) {
83-
form.resetField("email", { defaultValue: invitation.data.email });
82+
if (invitation.data?.email) {
83+
form.reset({
84+
email: invitation.data.email,
85+
password: "",
86+
rememberMe: true,
87+
});
8488
}
8589
}, [invitation.data, form]);
8690

0 commit comments

Comments
 (0)