diff --git a/src/use-chakra-select-props.ts b/src/use-chakra-select-props.ts index 4d18989..25a30d0 100644 --- a/src/use-chakra-select-props.ts +++ b/src/use-chakra-select-props.ts @@ -66,7 +66,7 @@ const useChakraSelectProps = < // Ensure that the color used for the selected options is a string let realSelectedOptionColorScheme: string = selectedOptionColorScheme; - if (!(selectedOptionColorScheme in chakraTheme.colors)) { + if (typeof selectedOptionColorScheme !== "string") { realSelectedOptionColorScheme = "blue"; }