mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Updates session details page.
This commit is contained in:
parent
095d1f2070
commit
1649992654
9 changed files with 123 additions and 223 deletions
|
|
@ -24,7 +24,7 @@ export function useFormat() {
|
|||
};
|
||||
|
||||
const formatCountry = (value: string): string => {
|
||||
return countryNames[value] || value || labels.unknown;
|
||||
return countryNames[value] || value;
|
||||
};
|
||||
|
||||
const formatRegion = (value?: string): string => {
|
||||
|
|
@ -57,7 +57,7 @@ export function useFormat() {
|
|||
case 'language':
|
||||
return formatLanguage(value);
|
||||
default:
|
||||
return value;
|
||||
return typeof value === 'string' ? value : undefined;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ export {
|
|||
File,
|
||||
Globe,
|
||||
Grid2X2,
|
||||
KeyRound,
|
||||
LayoutDashboard,
|
||||
Link,
|
||||
ListFilter,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue