From 4b02fe6a26508abed3dbfe2d0338cb77c6c392f7 Mon Sep 17 00:00:00 2001
From: Tony Ford <tonyford@strategy-investor.de>
Date: Fri, 13 Sep 2024 10:14:29 +0200
Subject: [PATCH] bugfix

---
 html/assets/js/script.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/html/assets/js/script.js b/html/assets/js/script.js
index e7edfa7..877c08e 100644
--- a/html/assets/js/script.js
+++ b/html/assets/js/script.js
@@ -515,8 +515,8 @@ function calculatePunktestand(saison,runde,show=true){
           if( MANAGERVOTING ){
             var _i = _e('i');
             _i.classList = 'fas fa-thumbs-up ';
-            $(_i).attr('onclick', "teamVoting('"+v.nt+"')");
-            if( SAISON_TEAMVOTED.reduce((a,b) => (a.concat(b))).indexOf(v.nt) > -1 ){
+            $(_i).attr('onclick', "teamVoting('"+v[0].nt+"')");
+            if( SAISON_TEAMVOTED.reduce((a,b) => (a.concat(b))).indexOf(v[0].nt) > -1 ){
               _i.classList += 'done';
               _i.title = 'Manager dieses Teams hat sein Voting abgegeben!';
             } else {
-- 
GitLab