Skip to content

Commit

Permalink
dont hide group field
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschonti committed Apr 11, 2024
1 parent db76af2 commit 122fbb8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/frontend/src/pages/poll/CreatePoll.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export function CreatePollPage() {
},
});
const {
watch,
register,
handleSubmit,
formState: { errors },
Expand Down Expand Up @@ -103,7 +102,7 @@ export function CreatePollPage() {
<FormLabel>{l('form.poll.label.confidential')}</FormLabel>
<Switch {...register('confidential')} />
</FormControl>
{watch('confidential') && adminGroups.data && adminGroups.data.length > 0 && (
{adminGroups.data && adminGroups.data.length > 0 && (
<FormControl isInvalid={!!errors.group}>
<FormLabel>{l('form.poll.label.group')}</FormLabel>
<Select {...register('group')}>
Expand Down

0 comments on commit 122fbb8

Please sign in to comment.