File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
package/src/components/Poll Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export const CreatePollContent = () => {
100100 style = { [ styles . scrollView , { backgroundColor : white } , scrollView ] }
101101 >
102102 < NameField />
103- < CreatePollOptions currentOptionPositions = { currentOptionPositions } options = { options } />
103+ < CreatePollOptions currentOptionPositions = { currentOptionPositions } />
104104 < MultipleAnswersField />
105105 < View
106106 style = { [ styles . textInputWrapper , { backgroundColor : bg_user } , anonymousPoll . wrapper ] }
Original file line number Diff line number Diff line change @@ -268,14 +268,13 @@ const pollComposerStateSelector = (state: PollComposerState) => ({
268268
269269export type CreatePollOptionsProps = {
270270 currentOptionPositions : SharedValue < CurrentOptionPositionsCache > ;
271- options : PollComposerOption [ ] ;
272271} ;
273272
274- export const CreatePollOptions = ( { currentOptionPositions, options } : CreatePollOptionsProps ) => {
273+ export const CreatePollOptions = ( { currentOptionPositions } : CreatePollOptionsProps ) => {
275274 const { t } = useTranslationContext ( ) ;
276275 const messageComposer = useMessageComposer ( ) ;
277276 const { pollComposer } = messageComposer ;
278- const { errors } = useStateStore ( pollComposer . state , pollComposerStateSelector ) ;
277+ const { errors, options } = useStateStore ( pollComposer . state , pollComposerStateSelector ) ;
279278 const { createPollOptionHeight = POLL_OPTION_HEIGHT } = useCreatePollContentContext ( ) ;
280279
281280 const updateOption = useCallback (
You can’t perform that action at this time.
0 commit comments