diff --git a/src/component/2d/zones/ZonesAssignmentsLabels.tsx b/src/component/2d/zones/ZonesAssignmentsLabels.tsx index b8104eb098..16bbcd9e1b 100644 --- a/src/component/2d/zones/ZonesAssignmentsLabels.tsx +++ b/src/component/2d/zones/ZonesAssignmentsLabels.tsx @@ -72,7 +72,7 @@ function findBestLink( const deltaLength = getDistance(a.x, a.y, b.x, b.y); const distance = Math.min(aLength, bLength); - const angle = getAngleFromSides(deltaLength, aLength, bLength); + const angle = Number(getAngleFromSides(deltaLength, aLength, bLength).toFixed(1)); result.push({ distance, angle, targetPoint, sourcePoint }); } @@ -85,7 +85,6 @@ function findBestLink( return a.distance - b.distance; } }); - return result[0]; }