Skip to content

Commit

Permalink
Remove check for color path
Browse files Browse the repository at this point in the history
  • Loading branch information
csandman committed Sep 19, 2024
1 parent a89643a commit 07aac49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use-chakra-select-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit 07aac49

Please sign in to comment.