Fixed offline time amount always showing when offline limit is 0

This commit is contained in:
thepaperpilot 2022-05-10 21:01:57 -05:00
parent 868a77af29
commit 3118db1402

View file

@ -46,10 +46,10 @@ export const main = createLayer("main", () => {
<>
{player.devSpeed === 0 ? <div>Game Paused</div> : null}
{player.devSpeed && player.devSpeed !== 1 ? (
<div>Dev Speed: {format(player.devSpeed || 0)}x</div>
<div>Dev Speed: {format(player.devSpeed)}x</div>
) : null}
{player.offlineTime != undefined ? (
<div>Offline Time: {formatTime(player.offlineTime || 0)}</div>
{player.offlineTime ? (
<div>Offline Time: {formatTime(player.offlineTime)}</div>
) : null}
<div>
{Decimal.lt(points.value, "1e1000") ? <span>You have </span> : null}