Updates session details page.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user