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 === 0 ? <div>Game Paused</div> : null}
{player.devSpeed && player.devSpeed !== 1 ? ( {player.devSpeed && player.devSpeed !== 1 ? (
<div>Dev Speed: {format(player.devSpeed || 0)}x</div> <div>Dev Speed: {format(player.devSpeed)}x</div>
) : null} ) : null}
{player.offlineTime != undefined ? ( {player.offlineTime ? (
<div>Offline Time: {formatTime(player.offlineTime || 0)}</div> <div>Offline Time: {formatTime(player.offlineTime)}</div>
) : null} ) : null}
<div> <div>
{Decimal.lt(points.value, "1e1000") ? <span>You have </span> : null} {Decimal.lt(points.value, "1e1000") ? <span>You have </span> : null}