diff --git a/dist/const.js b/dist/const.js index 629836b..b1550c2 100644 --- a/dist/const.js +++ b/dist/const.js @@ -1 +1 @@ -export let VERSION = "v0.8.0" \ No newline at end of file +export let VERSION = "v0.8.1" \ No newline at end of file diff --git a/dist/teamtracker_card.js b/dist/teamtracker_card.js index 4e1200e..c4cab7d 100644 --- a/dist/teamtracker_card.js +++ b/dist/teamtracker_card.js @@ -82,7 +82,6 @@ export class TeamTrackerCard extends LitElement { // // Set sport, team, and oppo // - var sport = stateObj.attributes.sport || "default"; var team = 1; var oppo = 2; if (((o.homeSide == "RIGHT") && (stateObj.attributes.team_homeaway == "home")) || @@ -104,6 +103,11 @@ export class TeamTrackerCard extends LitElement { } var t = new Translator(lang); + var sport = stateObj.attributes.sport || "default"; + if (t.translate(sport + ".startTerm") == "{"+ sport + ".startTerm" + "}") { + sport = "default"; + } + // // Set card data //