Added distance conversion

This commit is contained in:
niggl committed 2023-04-12 16:09:57 +02:00
1 parent c0cde02fec
commit 333214aa8f
1 file changed
+4
@@ -35,6 +35,10 @@
{
accessorKey: "distance",
header: () => $_('distance'),
cell: (info) => {
if(info.getValue() < 1000){return `${info.getValue()} m`}
return `${(info.getValue() / 1000).toFixed(1)} km`
},
enableColumnFilter: false,
},
];