Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

fix: Combo box search/filter logic

Khuram Niazf6aa35cbc648
diff --git a/src/components/ComboBox.tsx b/src/components/ComboBox.tsx
index 7ab7f0d..a4efccd 100644
--- a/src/components/ComboBox.tsx
+++ b/src/components/ComboBox.tsx
@@ -116,7 +116,7 @@ export function Combobox({ options, field, creatable }: ComboboxProps) {
<PopoverContent className="md:w-[240px] lg:w-[280px] p-0">
<Command
filter={(value, search) =>
- value.includes(search.toLowerCase()) ? 1 : 0
+ value.toLowerCase().includes(search.toLowerCase()) ? 1 : 0
}
>
<CommandInput
@@ -163,7 +163,7 @@ export function Combobox({ options, field, creatable }: ComboboxProps) {
<Check
className={cn(
"mr-2 h-4 w-4",
- option.value === field.value
+ option.id === field.value
? "opacity-100"
: "opacity-0"
)}