Skip to content

Commit

Permalink
fix: submit author only for author field
Browse files Browse the repository at this point in the history
  • Loading branch information
stilt0n committed Apr 25, 2024
1 parent e7c7438 commit 7fdd327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/forms/recipeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const RecipeForm: FC<RecipeFormProps> = ({
errorMessage={errors?.description?.message}
{...register('description')}
/>
<FormInput label='Author' type='text' {...register('description')} />
<FormInput label='Author' type='text' {...register('author')} />
<ul>
{fields.map((ingredient, index) => (
<li key={ingredient.id} className='grid grid-cols-7 gap-2 items-end'>
Expand Down

0 comments on commit 7fdd327

Please sign in to comment.