diff --git a/src/front/src/components/vote/VoteResult.vue b/src/front/src/components/vote/VoteResult.vue index 6d46ec1cd..c8e3bdf94 100644 --- a/src/front/src/components/vote/VoteResult.vue +++ b/src/front/src/components/vote/VoteResult.vue @@ -38,9 +38,9 @@ + style="height: 30vh; overflow-y: auto;"> - {{ department }} + {{ department }} Победитель: {{ winner.employee.fio || winner.name }} 🏆 @@ -162,14 +162,14 @@ - Результаты голосования: {{ activeDepartment }} + Результаты голосования: {{ activeDepartment }}

@@ -191,9 +191,8 @@ Должность: {{ answer.employee ? answer.employee.post : '' }}

- { + console.log(question); + if (typeof question === 'undefined') return 100 const totalVotes = question.answers.reduce((sum, answer) => sum + answer.count, 0); return totalVotes > 0 ? (count / totalVotes) * 100 : 0; };