diff --git a/src/app/ui/tracking-page/tracking-history-view.tsx b/src/app/ui/tracking-page/tracking-history-view.tsx index c2f4ed5..584eb48 100644 --- a/src/app/ui/tracking-page/tracking-history-view.tsx +++ b/src/app/ui/tracking-page/tracking-history-view.tsx @@ -63,6 +63,16 @@ export function TrackingHistoryView() { return nameWithoutExtension.substring(0, maxNameLength) + '...'; } + const editLocationName = (location: string | undefined | null, place: 'city' | 'country') => { + let notDefinedPlace = (place === 'city') ? t('not-defined-city') : t('not-defined-country'); + location === 'UNKNOWN' ? notDefinedPlace : location; + let response = notDefinedPlace; + if (location !== 'UNKNOWN' && location !== undefined && location !== null) { + response = location; + } + return response; + } + const columns = useMemo[]>( () => [ { @@ -103,7 +113,7 @@ export function TrackingHistoryView() { header: ({ column }) => (
- Дата / время + {t('date')} / {t('time')}