Skip to content

Commit

Permalink
fix: properly display 0 instead of --
Browse files Browse the repository at this point in the history
  • Loading branch information
mman committed Oct 14, 2024
1 parent 7b8e186 commit 77d3061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/Marine2/utils/formatters/power/power-value-for.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TForcePowerUnit } from "@m2Types/data/force-power-unit"
import { formatValue } from "../generic"

export const powerValueFor = (value?: number, forcePowerUnit?: TForcePowerUnit): string => {
if (!value) {
if (value === undefined) {
return formatValue()
}

Expand Down

0 comments on commit 77d3061

Please sign in to comment.