Skip to content

Commit ec169a0

Browse files
committed
ui-charts: remove unnecessary generic in calcTotalDistance()
Signed-off-by: Simon Ser <[email protected]>
1 parent 4b79ac0 commit ec169a0

File tree

1 file changed

+1
-1
lines changed
  • front/ui/ui-charts/src/manchette/utils

1 file changed

+1
-1
lines changed

front/ui/ui-charts/src/manchette/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const positionMmToKm = (position: number) => Math.round((position / 10000
77

88
export const msToS = (time: number) => time / 1000;
99

10-
export const calcTotalDistance = <T extends { position: number }>(ops: T[]) => {
10+
export const calcTotalDistance = (ops: { position: number }[]) => {
1111
if (ops.length === 0) {
1212
return 0;
1313
}

0 commit comments

Comments
 (0)