Fixed offline time amount always showing when offline limit is 0
This commit is contained in:
parent
868a77af29
commit
3118db1402
1 changed files with 3 additions and 3 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue