diff --git a/packages/react/src/components/select/SelectValue.tsx b/packages/react/src/components/select/SelectValue.tsx index 2890a49..3950ac6 100644 --- a/packages/react/src/components/select/SelectValue.tsx +++ b/packages/react/src/components/select/SelectValue.tsx @@ -41,7 +41,7 @@ const Component: ComponentType = React.forwardRef( ) const render = React.useMemo(() => { - if (state?.selectedItem?.textValue) return state?.selectedItem.textValue + if (state?.selectedItem?.textValue) return state.selectedItem.textValue return }, [Element, component, ref, state?.selectedItem?.textValue]) diff --git a/packages/react/src/utilities/polymorphic.ts b/packages/react/src/utilities/polymorphic.ts index 2d01cf3..bacddd7 100644 --- a/packages/react/src/utilities/polymorphic.ts +++ b/packages/react/src/utilities/polymorphic.ts @@ -1,4 +1,4 @@ -import React from 'react' +import type React from 'react' type PropsOf = React.ComponentPropsWithoutRef