Skip to content

Commit

Permalink
Fix the grouping of a nullish coalless
Browse files Browse the repository at this point in the history
  • Loading branch information
csandman committed Oct 27, 2022
1 parent ff89d88 commit f154847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use-chakra-select-props.ts
Expand Up @@ -55,7 +55,7 @@ const useChakraSelectProps = <
menuIsOpen ?? (inputProps.readOnly ? false : undefined);

/** Ensure that the size used is one of the options, either `sm`, `md`, or `lg` */
let realSize: Size = size ?? defaultSize === "xs" ? "sm" : defaultSize;
let realSize: Size = size ?? (defaultSize === "xs" ? "sm" : defaultSize);
const sizeOptions: Size[] = ["sm", "md", "lg"];
if (!sizeOptions.includes(realSize)) {
realSize = "md";
Expand Down

0 comments on commit f154847

Please sign in to comment.