diff --git a/frontend/app/components/modules/simulator-configs/simulator-chair-config.tsx b/frontend/app/components/modules/simulator-configs/simulator-chair-config.tsx index bc390c75..37de454e 100644 --- a/frontend/app/components/modules/simulator-configs/simulator-chair-config.tsx +++ b/frontend/app/components/modules/simulator-configs/simulator-chair-config.tsx @@ -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, + ), ); };