We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 441cb58 commit 5f93f04Copy full SHA for 5f93f04
src/frontend/components/FasterCarsFromBehind/hooks/useCarBehind.tsx
@@ -14,7 +14,7 @@ export const useCarBehind = ({
14
15
const fasterCarFromBehind = useMemo(() => {
16
const percent = parseInt(
17
- (100 - (Math.abs(carBehind?.delta) / 3) * 100).toFixed(0)
+ (100 - (Math.abs(carBehind?.delta ?? 0) / 3) * 100).toFixed(0)
18
);
19
20
return {
0 commit comments