From d9b4ae629e30a37d6bfd2dea90736d19789e7a14 Mon Sep 17 00:00:00 2001
From: kokodev
Date: Mon, 7 Oct 2024 08:21:41 -0700
Subject: [PATCH] fix
---
.../components/dashboard/ServerRow.tsx | 48 +++++++++----------
1 file changed, 23 insertions(+), 25 deletions(-)
diff --git a/resources/scripts/components/dashboard/ServerRow.tsx b/resources/scripts/components/dashboard/ServerRow.tsx
index 55c34c933..8717bacd0 100644
--- a/resources/scripts/components/dashboard/ServerRow.tsx
+++ b/resources/scripts/components/dashboard/ServerRow.tsx
@@ -100,31 +100,29 @@ export default ({ server, className }: { server: Server; className?: string }) =
- {!stats || isSuspended ? (
- isSuspended ? (
-
-
- {server.status === 'suspended' ? 'Suspended' : 'Connection Error'}
-
-
- ) : server.isTransferring || server.status ? (
-
-
- {server.isTransferring
- ? 'Transferring'
- : server.status === 'installing'
- ? 'Installing'
- : server.status === 'restoring_backup'
- ? 'Restoring Backup'
- : 'Unavailable'}
-
-
- ) : (
-
- )
- ) : (
- // You might want to handle the case when stats is available and isSuspended is false
- )}
+ {!stats || isSuspended ? (
+ isSuspended ? (
+
+
+ {server.status === 'suspended' ? 'Suspended' : 'Connection Error'}
+
+
+ ) : server.isTransferring || server.status ? (
+
+
+ {server.isTransferring
+ ? 'Transferring'
+ : server.status === 'installing'
+ ? 'Installing'
+ : server.status === 'restoring_backup'
+ ? 'Restoring Backup'
+ : 'Unavailable'}
+
+
+ ) : (
+
+ )
+ ) : (
{stats && (