From 21546ef65c18a5f181d936208440f1190dc583b7 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Mon, 25 Nov 2024 10:33:52 +0800 Subject: [PATCH] fix conditional error --- Client/src/Pages/Infrastructure/Details/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/src/Pages/Infrastructure/Details/index.jsx b/Client/src/Pages/Infrastructure/Details/index.jsx index b76aa3de3..e1611f982 100644 --- a/Client/src/Pages/Infrastructure/Details/index.jsx +++ b/Client/src/Pages/Infrastructure/Details/index.jsx @@ -54,7 +54,7 @@ const formatBytes = (bytes) => { * decimalToPercentage(null) // Returns 0 */ const decimalToPercentage = (value) => { - if (value === null || undefined) return 0; + if (value === null || value === undefined) return 0; return value * 100; };