Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Revert "fix(Polls): Calculate vote percentage based on total number of votes" (#10781)
Avram Tudorb3e1c5446cb8
diff --git a/react/features/polls/components/AbstractPollResults.js b/react/features/polls/components/AbstractPollResults.jsindex 3e7ce9aae4..f9b64e4214 100644--- a/react/features/polls/components/AbstractPollResults.js+++ b/react/features/polls/components/AbstractPollResults.js@@ -72,10 +72,10 @@ const AbstractPollResults = (Component: AbstractComponent<AbstractProps>) => (pr}}- const totalVotes = pollDetails.answers.reduce((sum, { voters: { size } }) => sum + size, 0);+ const totalVoters = voterSet.size;return pollDetails.answers.map(answer => {- const percentage = totalVotes === 0 ? 0 : Math.round(answer.voters.size / totalVotes * 100);+ const percentage = totalVoters === 0 ? 0 : Math.round(answer.voters.size / totalVoters * 100);let voters = null;