Only show mumble stats if present

This commit is contained in:
Tanner Collin 2021-04-04 00:07:27 +00:00
parent 5abb91d838
commit b8f8252906

View File

@ -235,7 +235,7 @@ export function Home(props) {
{' '}<a href='http://games.protospace.ca:8123/?worldname=world&mapname=flat&zoom=3&x=74&y=64&z=354' target='_blank'>[map]</a> {' '}<a href='http://games.protospace.ca:8123/?worldname=world&mapname=flat&zoom=3&x=74&y=64&z=354' target='_blank'>[map]</a>
</p> </p>
<p> {stats && stats.hasOwnProperty('mumble_users') && <p>
Mumble users: {mumbleUsers.length} <Popup content={ Mumble users: {mumbleUsers.length} <Popup content={
<React.Fragment> <React.Fragment>
<p> <p>
@ -248,7 +248,7 @@ export function Home(props) {
</p> </p>
</React.Fragment> </React.Fragment>
} trigger={<a>[more]</a>} /> } trigger={<a>[more]</a>} />
</p> </p>}
<p> <p>
Trotec availability: {getTrackStat('TROTECS300')} <Popup content={ Trotec availability: {getTrackStat('TROTECS300')} <Popup content={