Merge dev.
This commit is contained in:
commit
be1b2fc272
88 files changed
+4120
-21010
No files matched your search
@@ -27,8 +27,8 @@ export function useFormat() {
|
||||
return countryNames[value] || value;
|
||||
};
|
||||
|
||||
const formatRegion = (value: string): string => {
|
||||
const [country] = value.split('-');
|
||||
const formatRegion = (value?: string): string => {
|
||||
const [country] = value?.split('-') || [];
|
||||
return regions[value] ? `${regions[value]}, ${countryNames[country]}` : value;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user