Skip to content

Commit

Permalink
Refactor filterOptions, onChangeCity to use specific types instead of…
Browse files Browse the repository at this point in the history
… unknown
  • Loading branch information
ipasic-softserve committed Jul 28, 2024
1 parent 4f2c1eb commit 21f36e1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ const GeneralInfoStep = ({
})

const filterOptions = (
options: unknown[],
state: FilterOptionsState<unknown>
options: string[],
state: FilterOptionsState<string>
) => {
const defaultFilterOptions = createFilterOptions()
const defaultFilterOptions = createFilterOptions<string>()
return defaultFilterOptions(options, state).slice(0, 300)
}

Expand All @@ -99,9 +99,9 @@ const GeneralInfoStep = ({

const onChangeCity = (
event: SyntheticEvent<Element, Event>,
value: unknown
value: string | null
) => {
handleNonInputValueChange('city', value as string | null)
handleNonInputValueChange('city', value)
}

const getUserById = useCallback(
Expand Down

0 comments on commit 21f36e1

Please sign in to comment.