Skip to content

Commit

Permalink
fix team win opacity correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
D34DC3N73R authored Jan 4, 2022
1 parent 1978ece commit f6be8f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/ha-nfl-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ class NFLCard extends LitElement {
if (stateObj.attributes.possession == stateObj.attributes.opponent_id) {
var oppoPoss = 1;
}
if (Boolean(stateObj.state == 'POST') && (tScr*100) > (oScr*100)) {
if (Boolean(stateObj.state == 'POST') && Number(tScr) > Number(oScr)) {
var oppoScore = 0.6;
var teamScore = 1;
}
if (Boolean(stateObj.state == 'POST') && (tScr*100) < (oScr*100)) {
if (Boolean(stateObj.state == 'POST') && Number(tScr) < Number(oScr)) {
var oppoScore = 1;
var teamScore = 0.6;
}
if (Boolean(stateObj.state == 'POST') && (tScr*100) == (oScr*100)) {
if (Boolean(stateObj.state == 'POST') && Number(tScr) == Number(oScr)) {
var oppoScore = 1;
var teamScore = 1;
}
Expand Down

0 comments on commit f6be8f0

Please sign in to comment.