Skip to content

Commit

Permalink
fix: redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
silkeholmebonnen committed Aug 20, 2024
1 parent 89f562f commit 02e95cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/utils/formatting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 02e95cc

Please sign in to comment.