diff --git a/packages/design-system/src/ui/input/combobox/multipleSelect/combobox.tsx b/packages/design-system/src/ui/input/combobox/multipleSelect/combobox.tsx index f47bd29..6c6592a 100644 --- a/packages/design-system/src/ui/input/combobox/multipleSelect/combobox.tsx +++ b/packages/design-system/src/ui/input/combobox/multipleSelect/combobox.tsx @@ -118,7 +118,7 @@ const Combobox = forwardRef< if (!selectedValues.includes(valueToAdd)) { const newSelectedValues = [...selectedValues, valueToAdd]; console.log("Setting new selectedValues:", newSelectedValues); - //Tells the parz + //Tells the par setSelectedValues(newSelectedValues); setQuery(""); // Clear query after selection diff --git a/packages/design-system/src/ui/input/combobox/singleSelect/combobox.tsx b/packages/design-system/src/ui/input/combobox/singleSelect/combobox.tsx index 5905693..3902230 100644 --- a/packages/design-system/src/ui/input/combobox/singleSelect/combobox.tsx +++ b/packages/design-system/src/ui/input/combobox/singleSelect/combobox.tsx @@ -36,11 +36,11 @@ const Combobox = forwardRef< options, ...props }, - ref + ref, ) => { //Use state for selecting values. If nothing is provided, defaultValue will become the selected value const [selectedValue, setSelectedValue] = useState( - defaultValue || null + defaultValue || null, ); const [query, setQuery] = useState(defaultValue || ""); @@ -48,7 +48,7 @@ const Combobox = forwardRef< useEffect(() => { const filtered = options.filter((option) => - option.label.toLowerCase().includes(query.toLowerCase()) + option.label.toLowerCase().includes(query.toLowerCase()), ); setFilteredOptions(filtered); }, [query, options]); @@ -138,7 +138,7 @@ const Combobox = forwardRef< ); - } + }, ); export { Combobox, Input }; diff --git a/packages/design-system/src/ui/input/combobox/singleSelect/singleSelectField.tsx b/packages/design-system/src/ui/input/combobox/singleSelect/singleSelectField.tsx index bfb8101..8accc20 100644 --- a/packages/design-system/src/ui/input/combobox/singleSelect/singleSelectField.tsx +++ b/packages/design-system/src/ui/input/combobox/singleSelect/singleSelectField.tsx @@ -68,7 +68,7 @@ const SingleSelectField = forwardRef, Props>( {hasError && {error}} ); - } + }, ); export { SingleSelectField };