From ff27b1ef510e07a7a866c3a2815a430cef588aaf Mon Sep 17 00:00:00 2001 From: Ean McLaughlin Date: Wed, 1 Feb 2023 15:32:10 -0700 Subject: [PATCH] Show container status if health is an empty string If data.health is an empty string, ?? will accept it and not use the right side value; instead, we should use || which treats empty string as false and returns the right side value. This will show "RUNNING" in the status box if health is "". --- src/components/services/status.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/services/status.jsx b/src/components/services/status.jsx index eaf320306..81d485891 100644 --- a/src/components/services/status.jsx +++ b/src/components/services/status.jsx @@ -30,8 +30,8 @@ export default function Status({ service }) { } return ( -
-
{data.health ?? data.status}
+
+
{data.health || data.status}
); }