Skip to content

Commit be95473

Browse files
committed
fix: floorを戻す
1 parent a3548b8 commit be95473

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

frontend/app/components/modules/simulator-configs/simulator-chair-config.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ const progress = (
2626
const currentToEnd =
2727
Math.abs(end.latitude - current.latitude) +
2828
Math.abs(end.longitude - current.longitude);
29-
return Math.max(
30-
Math.min(((startToEnd - currentToEnd) / startToEnd) * 100, 100),
31-
0,
29+
return Math.floor(
30+
Math.max(
31+
Math.min(((startToEnd - currentToEnd) / startToEnd) * 100, 100),
32+
0,
33+
),
3234
);
3335
};
3436

0 commit comments

Comments
 (0)