Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
Fix issue with selecting time options
Luke Vella357d25305f81
diff --git a/components/poll/mobile-poll/poll-options.tsx b/components/poll/mobile-poll/poll-options.tsxindex 8969da539..3b25579c7 100644--- a/components/poll/mobile-poll/poll-options.tsx+++ b/components/poll/mobile-poll/poll-options.tsx@@ -26,6 +26,7 @@ const PollOptions: React.VoidFunctionComponent<PollOptions> = ({getParticipantById,getScore,getVote,+ options: allOptions,} = usePoll();const selectedParticipant = selectedParticipantId? getParticipantById(selectedParticipantId)@@ -33,9 +34,12 @@ const PollOptions: React.VoidFunctionComponent<PollOptions> = ({return (<div className="divide-y">- {options.map((option, index) => {+ {options.map((option) => {const participants = getParticipantsWhoVotedForOption(option.optionId);const score = getScore(option.optionId);+ const index = allOptions.findIndex(+ ({ optionId }) => option.optionId === optionId,+ );return (<Controllerkey={option.optionId}