Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
feat: require stay-anonymous field
Browse files Browse the repository at this point in the history
  • Loading branch information
ykdojo committed Aug 27, 2022
1 parent aa41086 commit 410d152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/submit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const Submit: NextPage<UserProps> = ({ user }) => {
<div className='flex h-5 items-center'>
<input
id='stay-anonymous'
{...register('stay-anonymous')}
{...(register('stay-anonymous'), { required: true })}
type='checkbox'
className='h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500'
/>
Expand Down

0 comments on commit 410d152

Please sign in to comment.