From 02e95ccc0a4ea0370e33ac2f5656071e7fda0a91 Mon Sep 17 00:00:00 2001 From: silkeholmebonnen Date: Tue, 20 Aug 2024 15:08:54 +0200 Subject: [PATCH] fix: redundant code --- web/src/utils/formatting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/utils/formatting.ts b/web/src/utils/formatting.ts index 2b29cdeddd..74652779ca 100644 --- a/web/src/utils/formatting.ts +++ b/web/src/utils/formatting.ts @@ -17,7 +17,7 @@ export const formatPower = ({ numberDigits = DEFAULT_NUM_DIGITS, }: FormatParameters) => { // Assume MW input - if (value == undefined || Number.isNaN(value)) { + if (Number.isNaN(value)) { return value; } if (value == 0) {