mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
fix(polls): Fix 'Skip' button functionality
This commit is contained in:
@@ -13,9 +13,11 @@ const PollAnswer = (props: AbstractProps) => {
|
||||
poll,
|
||||
setCheckbox,
|
||||
skipAnswer,
|
||||
skipChangeVote,
|
||||
submitAnswer,
|
||||
t
|
||||
} = props;
|
||||
const { changingVote } = poll;
|
||||
|
||||
return (
|
||||
<div className = 'poll-answer'>
|
||||
@@ -45,7 +47,7 @@ const PollAnswer = (props: AbstractProps) => {
|
||||
<button
|
||||
aria-label = { t('polls.answer.skip') }
|
||||
className = 'poll-button poll-button-secondary poll-button-shortest'
|
||||
onClick = { skipAnswer } >
|
||||
onClick = { changingVote ? skipChangeVote : skipAnswer } >
|
||||
<span>{t('polls.answer.skip')}</span>
|
||||
</button>
|
||||
<button
|
||||
|
||||
@@ -17,7 +17,7 @@ type Props = {
|
||||
}
|
||||
|
||||
const PollItem = React.forwardRef<Props, HTMLElement>(({ pollId }, ref) => {
|
||||
const showResults = useSelector(state => shouldShowResults(state, pollId));
|
||||
const showResults = useSelector(shouldShowResults(pollId));
|
||||
|
||||
return (
|
||||
<div ref = { ref }>
|
||||
|
||||
Reference in New Issue
Block a user