diff --git a/html/assets/js/script.js b/html/assets/js/script.js index e7edfa74920a3fe2caf26ce7d463b17115f23e5a..877c08e938f23b92d88d0b0724e45b6498c6e075 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 {