Skip to content

Commit

Permalink
Update populateWithChoiceInfo.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrizzz-1508 authored May 22, 2024
1 parent b4c804f commit b9474cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _includes/twitch_triggers/helpers/populateWithChoiceInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ obj.top_vote_list = topVotesSorted;
choiceInfoTokens.bits = allowBits ? choiceInfoVotes.bits * 5 : 0;
choiceInfoTokens.channel_points = allowPoints ? choiceInfoVotes.channel_points * 10 : 0;
// add up all the base, bits and channel points botes
obj.vote_total_base += choiceInfoVotes.base;
//obj.vote_total_base += choiceInfoVotes.base;
obj.vote_total_bits += choiceInfoVotes.bits;
obj.vote_total_points += choiceInfoVotes.channel_points;
}
obj.vote_total_base = 0;
choiceInfo.votes = choiceInfoVotes;
choiceInfo.tokens = choiceInfoTokens;
obj[`choice_${i + 1}_info`] = choiceInfo;
Expand Down

0 comments on commit b9474cc

Please sign in to comment.