Skip to content

Commit 42bb3f4

Browse files
update: Update comment on distance.
1 parent 392a17a commit 42bb3f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/getCircularBadgePosition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function getCircularBadgePosition(
2020
gravity,
2121
);
2222

23-
// Calculate the distance from the center of the container to the center of
23+
// Calculate the distance from the center of the container to the bottom-center of
2424
// the badge.
2525
const distance = Math.sqrt(
2626
Math.pow(circleRadius, 2) - Math.pow(badge.width / 2, 2),

0 commit comments

Comments
 (0)