Fix selecting emojis in Poll
This commit is contained in:
parent
e39c8d6713
commit
97b282e4e4
1 changed files with 1 additions and 1 deletions
|
@ -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]));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue