Skip to content

Commit

Permalink
fix: fixing number typo
Browse files Browse the repository at this point in the history
  • Loading branch information
FritzHoing committed Nov 23, 2023
1 parent 72b0e63 commit 14fc3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Button/MeasureButton/MeasureButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ class MeasureButton extends React.Component<MeasureButtonProps> {
const radius = Math.round(geom.getRadius() * decimalHelper) / decimalHelper;
output = `${radius.toString()} m`;
if (area > (Math.PI * 1000000)) {
output = (Math.round(geom.getRadius() / 100 * decimalHelper) /
output = (Math.round(geom.getRadius() / 1000 * decimalHelper) /
decimalHelper) + ' km';
}
}
Expand Down

0 comments on commit 14fc3e8

Please sign in to comment.