From d7b387be3e4fb9ba40329b75936910c33c5f91c0 Mon Sep 17 00:00:00 2001
From: Aspect <43487424+AspectTheDev@users.noreply.github.com>
Date: Tue, 4 Oct 2022 22:12:07 -0400
Subject: [PATCH] Show UptimeDuration for starting servers (#4284)
---
.../components/server/console/ServerDetailsBlock.tsx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/resources/scripts/components/server/console/ServerDetailsBlock.tsx b/resources/scripts/components/server/console/ServerDetailsBlock.tsx
index da105174a..8d7f9e6bd 100644
--- a/resources/scripts/components/server/console/ServerDetailsBlock.tsx
+++ b/resources/scripts/components/server/console/ServerDetailsBlock.tsx
@@ -98,12 +98,12 @@ const ServerDetailsBlock = ({ className }: { className?: string }) => {
title={'Uptime'}
color={getBackgroundColor(status === 'running' ? 0 : status !== 'offline' ? 9 : 10, 10)}
>
- {status === 'starting' || status === 'stopping' ? (
- capitalize(status)
+ {status === null ? (
+ "Offline"
) : stats.uptime > 0 ? (
) : (
- 'Offline'
+ capitalize(status)
)}