diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..7423024 Binary files /dev/null and b/.DS_Store differ diff --git a/src/components/dropdown.jsx b/src/components/dropdown.jsx index 740abb2..45c05b5 100644 --- a/src/components/dropdown.jsx +++ b/src/components/dropdown.jsx @@ -44,7 +44,7 @@ const Dropdown = ({ variant, className, contentClassName, label, options, value, }); useEffect(() => { - if (value && selectedOption !== value) setSelectedOption(value); + if (value !== undefined && selectedOption !== value) setSelectedOption(value); }, [value]); const onSelect = (option) => {