Fix selecting emojis in Poll

This commit is contained in:
Justin 2022-06-14 14:19:46 -04:00
parent e39c8d6713
commit 97b282e4e4

View file

@ -66,7 +66,7 @@ const Option = (props: IOption) => {
const onSuggestionsFetchRequested = (token: string) => dispatch(fetchComposeSuggestions(token)); const onSuggestionsFetchRequested = (token: string) => dispatch(fetchComposeSuggestions(token));
const onSuggestionSelected = (tokenStart: number, token: string | null, value: AutoSuggestion) => { const onSuggestionSelected = (tokenStart: number, token: string | null, value: AutoSuggestion) => {
if (token && typeof value === 'string') { if (token && typeof token === 'string') {
dispatch(selectComposeSuggestion(tokenStart, token, value, ['poll', 'options', index])); dispatch(selectComposeSuggestion(tokenStart, token, value, ['poll', 'options', index]));
} }
}; };