diff --git a/apps/client/src/components/locale-combobox.tsx b/apps/client/src/components/locale-combobox.tsx index 162c6467..595de2a7 100644 --- a/apps/client/src/components/locale-combobox.tsx +++ b/apps/client/src/components/locale-combobox.tsx @@ -7,6 +7,7 @@ import { CommandGroup, CommandInput, CommandItem, + CommandList, Popover, PopoverContent, PopoverTrigger, @@ -40,36 +41,40 @@ export const LocaleCombobox = ({ value, onValueChange }: Props) => { onValueChange={setSearch} placeholder={t`Search for a language`} /> - {t`No results found`} - - -
- {options.map(({ original }) => ( - { - const result = options.find( - ({ original }) => original.locale.trim().toLowerCase() === selectedValue, - ); + + {t`No results found`} + + +
+ {options.map(({ original }) => ( + { + const result = options.find( + ({ original }) => original.locale.trim() === selectedValue, + ); - if (!result) return null; + if (!result) return null; - onValueChange(result.original.locale); - }} - > - - {original.name} ({original.locale}) - - ))} -
-
-
+ onValueChange(result.original.locale); + }} + > + + {original.name}{" "} + ({original.locale}) +
+ ))} +
+
+
+ ); }; diff --git a/apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx b/apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx index 718d6173..7adfd6cd 100644 --- a/apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx +++ b/apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx @@ -291,7 +291,7 @@ export const ImportDialog = () => { - {(!validationResult ?? false) && ( + {(!validationResult || false) && ( diff --git a/libs/ui/src/components/command.tsx b/libs/ui/src/components/command.tsx index ed951083..0111092a 100644 --- a/libs/ui/src/components/command.tsx +++ b/libs/ui/src/components/command.tsx @@ -108,7 +108,7 @@ export const CommandItem = forwardRef<