diff --git a/src/app/ui/tracking-page/tracking-history-view.tsx b/src/app/ui/tracking-page/tracking-history-view.tsx index 432e014..94e1cfc 100644 --- a/src/app/ui/tracking-page/tracking-history-view.tsx +++ b/src/app/ui/tracking-page/tracking-history-view.tsx @@ -84,15 +84,23 @@ export function TrackingHistoryView() { return nameWithoutExtension.substring(0, maxNameLength) + '...'; } - const editLocationName = (location: string | undefined | null) => { - if (!location) return ''; + function EditLocationName({ location }: { location: string | undefined | null }) { + if (!location) return ( +
+ ); const [city, country] = location.split('/'); const translatedCity = city === 'unknow' ? t('not-defined-city') : city; const translatedCountry = country === 'unknow' ? t('not-defined-country') : country; - return `${translatedCity}/${translatedCountry}`; + return ( +