Show full list of participants on mobile view (#193)

This commit is contained in:
Luke Vella 2022-06-01 09:43:34 +01:00 committed by GitHub
parent 53fa823857
commit 4ce5a1990e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 340 additions and 209 deletions

View file

@ -124,7 +124,7 @@ export const PollContextProvider: React.VoidFunctionComponent<{
participantsByOptionId[option.id] = (participants ?? []).filter(
(participant) =>
participant.votes.some(
({ type, optionId }) => optionId === option.id && type !== "no",
({ type, optionId }) => optionId === option.id && type === "yes",
),
);
});