Skip to content

Commit

Permalink
fixed point error list
Browse files Browse the repository at this point in the history
  • Loading branch information
kistenklaus committed Jul 18, 2024
1 parent 6b2fc34 commit c436c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object_entry/vis/errors/ErrorListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function FriendItem({ friend }: Readonly<FriendItemProps>) {
if (info.ty !== undefined && (isInt(info.ty.id) || isUInt(info.ty.id))) {
return <Typography>{`${(Number.parseInt(value as any) as number)} ${(info?.unit !== undefined && info?.unit !== null) ? info.unit : ""}`}</Typography>
} else if (info.ty !== undefined && isReal(info.ty.id)) {
return <Typography>{`${(value as number)} ${(info?.unit !== undefined && info?.unit !== null) ? info.unit : ""}`}</Typography>
return <Typography>{`${(value as number)?.toFixed(2)} ${(info?.unit !== undefined && info?.unit !== null) ? info.unit : ""}`}</Typography>
} else {
return <Typography>{`${value} ${(info?.unit !== undefined && info?.unit !== null) ? info.unit : ""}`}</Typography>
}
Expand Down

0 comments on commit c436c95

Please sign in to comment.