Added distance conversion

This commit is contained in:
Nicolai Ort 2023-04-12 16:09:57 +02:00
parent c0cde02fec
commit 333214aa8f
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 4 additions and 0 deletions

View File

@ -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,
},
];