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) {