Skip to content

Commit

Permalink
fix: disable add options button after 10 options
Browse files Browse the repository at this point in the history
  • Loading branch information
janhvipatil committed Apr 2, 2024
1 parent 18a38ac commit 84cd592
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions raven-app/src/components/feature/polls/CreatePoll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ export const CreatePoll = ({ buttonStyle, isDisabled = false }: CreatePollProps)

<Flex justify={'between'} align={'center'}>
<Button
disabled={fields.length >= 10}
type='button'
size={'1'}
variant='ghost'
Expand Down

0 comments on commit 84cd592

Please sign in to comment.