Skip to content

Commit

Permalink
fix(react): use correct names for user form
Browse files Browse the repository at this point in the history
  • Loading branch information
jrea committed Aug 18, 2022
1 parent 1b4b079 commit d70a9ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/lib/UserForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function LoginForm(props: {
placeholder="Email"
error={Boolean(errors.Email)}
helperText={errors.Email && 'This field is required'}
{...register('Email', { required: true })}
{...register('email', { required: true })}
/>

<TextField
Expand All @@ -43,7 +43,7 @@ export default function LoginForm(props: {
type="password"
error={Boolean(errors.Password)}
helperText={errors.Password && 'This field is required'}
{...register('Password', { required: true })}
{...register('password', { required: true })}
/>

<Button type="submit">{buttonText}</Button>
Expand Down

0 comments on commit d70a9ef

Please sign in to comment.