We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9712cb1 commit eb983adCopy full SHA for eb983ad
1 file changed
client/app/components/vote/index.tsx
@@ -42,7 +42,8 @@ const Vote = ({ logout }: { logout: () => void }) => {
42
if (wsData?.status === "finished") refetchElected();
43
}, [wsData?.status]);
44
45
- randomize(candidates);
+ const randomizeCandidates = [...candidates];
46
+ randomize(randomizeCandidates);
47
48
return (
49
<>
@@ -125,7 +126,7 @@ const Vote = ({ logout }: { logout: () => void }) => {
125
126
race_id={currentRace.race.id}
127
status={currentRace.race.status}
128
position={currentRace?.positions?.title!}
- candidates={candidates}
129
+ candidates={randomizeCandidates}
130
/>
131
) : (
132
<div className="fixed bottom-0 left-0 flex justify-center w-full p-2 cursor-pointer bg-background border-t-1 border-t-border">
0 commit comments