Skip to content

Commit

Permalink
fix form value warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wwayne committed Mar 18, 2024
1 parent ca59c90 commit 2e4a817
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ee/tabby-ui/app/auth/signup/components/user-register-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ export function UserAuthForm({
const form = useForm<z.infer<typeof formSchema>>({
resolver: zodResolver(formSchema),
defaultValues: {
email: "",
password1: "",
password2: "",
invitationCode
}
})
Expand Down Expand Up @@ -106,6 +103,7 @@ export function UserAuthForm({
autoComplete="email"
autoCorrect="off"
{...field}
value={field.value ?? ""}
/>
</FormControl>
<FormMessage />
Expand All @@ -119,7 +117,7 @@ export function UserAuthForm({
<FormItem>
<FormLabel>Password</FormLabel>
<FormControl>
<Input type="password" {...field} />
<Input type="password" {...field} value={field.value ?? ""} />
</FormControl>
<FormMessage />
</FormItem>
Expand All @@ -132,7 +130,7 @@ export function UserAuthForm({
<FormItem>
<FormLabel>Confirm Password</FormLabel>
<FormControl>
<Input type="password" {...field} />
<Input type="password" {...field} value={field.value ?? ""} />
</FormControl>
<FormMessage />
</FormItem>
Expand Down

0 comments on commit 2e4a817

Please sign in to comment.