diff --git a/js/teams.js b/js/teams.js index 970f0a7..2337aad 100644 --- a/js/teams.js +++ b/js/teams.js @@ -344,11 +344,11 @@ function loadTeamData(team, matches, heroData) { elem = $('#team-structure-stats'); updateTeamStat(elem, 'forts-destroyed', teamStats.structures.Fort.destroyed); updateTeamStat(elem, 'forts-lost', teamStats.structures.Fort.lost); - updateTeamStat(elem, 'first-fort', teamStats.structures.Fort.destroyed === 0 ? 'N/A' : formatSeconds(teamStats.structures.Fort.first / teamStats.structures.Fort.gamesWithFirst)); + updateTeamStat(elem, 'first-fort', teamStats.structures.Fort.destroyed === 0 ? '-' : formatSeconds(teamStats.structures.Fort.first / teamStats.structures.Fort.gamesWithFirst)); updateTeamStat(elem, 'keeps-destroyed', teamStats.structures.Keep.destroyed); updateTeamStat(elem, 'keeps-lost', teamStats.structures.Keep.lost); - updateTeamStat(elem, 'first-keep', teamStats.structures.Keep.destroyed === 0 ? 'N/A' : formatSeconds(teamStats.structures.Keep.first / teamStats.structures.Keep.gamesWithFirst)); + updateTeamStat(elem, 'first-keep', teamStats.structures.Keep.destroyed === 0 ? '-' : formatSeconds(teamStats.structures.Keep.first / teamStats.structures.Keep.gamesWithFirst)); updateTeamStat(elem, 'wells-destroyed', teamStats.structures['Fort Well'].destroyed + teamStats.structures['Keep Well'].destroyed); updateTeamStat(elem, 'wells-lost', teamStats.structures['Fort Well'].lost + teamStats.structures['Keep Well'].lost); diff --git a/js/util/formatters.js b/js/util/formatters.js index 5055fe7..0f57a70 100644 --- a/js/util/formatters.js +++ b/js/util/formatters.js @@ -21,7 +21,7 @@ function formatSeconds(val) { function formatStat(field, val, allFixed = false) { if (Number.isNaN(val)) - return "N/A"; + return '-'; if (val === undefined) return 0; diff --git a/js/util/table-defs.js b/js/util/table-defs.js index 5257964..2e4e732 100644 --- a/js/util/table-defs.js +++ b/js/util/table-defs.js @@ -506,11 +506,6 @@ const TeamHeroSummaryFormat = { data: (row) => row.stats.Takedowns / Math.max(1, row.stats.Deaths), render: (data) => formatStat('KDA', data) }, - { - title: 'Avg. Time Dead', - data: 'stats.TimeSpentDead', - render: (data) => formatStat('Time', data) - }, { title: 'Avg. % Dead', data: (row) => row.stats.timeDeadPct / row.games, diff --git a/templates/teams-page.html b/templates/teams-page.html index 1389e5b..e9f4ab4 100644 --- a/templates/teams-page.html +++ b/templates/teams-page.html @@ -68,7 +68,6 @@

[Team Name]

D K KDA - Avg. Time Dead Avg. % Dead Round 1 Pick % Round 2 Pick %