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 && (