Skip to content

Commit

Permalink
Minor F1 Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vasqued2 committed Nov 12, 2022
1 parent a231686 commit 9b1af75
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
20 changes: 16 additions & 4 deletions dist/ha-teamtracker-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,16 +331,28 @@ if (sport.includes("basketball")) {
title = stateObj.attributes.event_name;
timeoutsDisplay = 'none';
probDisplay = "none";
var probWrapDisplay = "none";
probWrapDisplay = "none";

}

//
// Racing Specific Changes
//
if (sport.includes("racing")) {
title = stateObj.attributes.event_name;
}
if (sport.includes("racing")) {
title = stateObj.attributes.event_name;
if (stateObj.attributes.quarter) {
odds = stateObj.attributes.quarter;
gameStat1 = stateObj.attributes.quarter;
finalTerm = finalTerm + " (" + stateObj.attributes.quarter + ")";
}
timeoutsDisplay = 'none';

teamProb = stateObj.attributes.team_total_shots;
oppoProb = stateObj.attributes.team_total_shots;
teamBarLabel = t.translate("racing.teamBarLabel", "%s", String(stateObj.attributes.team_total_shots));
oppoBarLabel = t.translate("racing.teamBarLabel", "%s", String(stateObj.attributes.team_total_shots));

}


//
Expand Down
10 changes: 10 additions & 0 deletions dist/localize/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ export const en = {
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"racing": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Laps",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"soccer": {
"startTerm": "Kickoff",
"overUnder": "O/U: %s",
Expand Down
10 changes: 10 additions & 0 deletions dist/localize/languages/en_US.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ export const en_US = {
"teamBarLabel": "%s%",
"oppoBarLabel": "%s%"
},
"racing": {
"startTerm": "Start",
"overUnder": "O/U: %s",
"gameStat1": "%s",
"gameStat2": "%s",
"gameStat3": "",
"gameBar": "Laps",
"teamBarLabel": "%s",
"oppoBarLabel": "%s"
},
"soccer": {
"startTerm": "Kickoff",
"overUnder": "O/U: %s",
Expand Down

0 comments on commit 9b1af75

Please sign in to comment.