Skip to content

Commit

Permalink
fix: floorを戻す
Browse files Browse the repository at this point in the history
  • Loading branch information
narirou committed Dec 7, 2024
1 parent a3548b8 commit be95473
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ const progress = (
const currentToEnd =
Math.abs(end.latitude - current.latitude) +
Math.abs(end.longitude - current.longitude);
return Math.max(
Math.min(((startToEnd - currentToEnd) / startToEnd) * 100, 100),
0,
return Math.floor(
Math.max(
Math.min(((startToEnd - currentToEnd) / startToEnd) * 100, 100),
0,
),
);
};

Expand Down

0 comments on commit be95473

Please sign in to comment.