Skip to content

Commit

Permalink
Fix Results component to correctly return option ID in vote data retr…
Browse files Browse the repository at this point in the history
…ieval
  • Loading branch information
JohanGrims committed Dec 16, 2024
1 parent 18d583a commit 1df48e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/admin/vote/Results.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ Results.loader = async function loader({ params }) {
const options = (
await getDocs(collection(db, `/votes/${id}/options`))
).docs.map((doc) => {
return { id: doc.id, ...doc.data() };
return { id, ...doc.data() };
});

const results = (
Expand Down

0 comments on commit 1df48e9

Please sign in to comment.