diff --git a/webclient/src/Home.js b/webclient/src/Home.js index 52de29b..876212c 100644 --- a/webclient/src/Home.js +++ b/webclient/src/Home.js @@ -150,7 +150,7 @@ export function Home(props) { const mcPlayers = stats && stats['minecraft_players'] ? stats['minecraft_players'] : []; - const getTrackStat = (x) => stats && stats.track && stats.track[x] && moment().unix() - stats.track[x] > 60 ? 'Free' : 'In Use'; + const getTrackStat = (x) => stats && stats.track && stats.track[x] ? moment().unix() - stats.track[x] > 60 ? 'Free' : 'In Use' : '?'; const getTrackLast = (x) => stats && stats.track && stats.track[x] ? moment.unix(stats.track[x]).tz('America/Edmonton').format('llll') : 'Unknown'; const getTrackAgo = (x) => stats && stats.track && stats.track[x] ? moment.unix(stats.track[x]).tz('America/Edmonton').fromNow() : '';