mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 10:46:35 +02:00
🐛 Fix issue caused by orphaned votes
This commit is contained in:
parent
6ad06fdbe3
commit
f2ae4d6465
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ const useScoreByOptionId = () => {
|
||||||
|
|
||||||
responses?.forEach((response) => {
|
responses?.forEach((response) => {
|
||||||
response.votes.forEach((vote) => {
|
response.votes.forEach((vote) => {
|
||||||
scoreByOptionId[vote.optionId][vote.type].push(response.id);
|
scoreByOptionId[vote.optionId]?.[vote.type].push(response.id);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue