Skip to content

Commit 5f93f04

Browse files
tariknzCopilot
andauthored
Update src/frontend/components/FasterCarsFromBehind/hooks/useCarBehind.tsx
Co-authored-by: Copilot <[email protected]>
1 parent 441cb58 commit 5f93f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontend/components/FasterCarsFromBehind/hooks/useCarBehind.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const useCarBehind = ({
1414

1515
const fasterCarFromBehind = useMemo(() => {
1616
const percent = parseInt(
17-
(100 - (Math.abs(carBehind?.delta) / 3) * 100).toFixed(0)
17+
(100 - (Math.abs(carBehind?.delta ?? 0) / 3) * 100).toFixed(0)
1818
);
1919

2020
return {

0 commit comments

Comments
 (0)