Skip to content

Commit

Permalink
(fix) use handleInputChange function naming
Browse files Browse the repository at this point in the history
  • Loading branch information
usamaidrsk committed Oct 2, 2024
1 parent 4dd3ff0 commit a4eb9d5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { useTranslation } from 'react-i18next';
export interface LocationPersonAttributeFieldProps {
id: string;
personAttributeType: PersonAttributeTypeResponse;
validationRegex?: string;
label?: string;
locationTag: string;
required?: boolean;
Expand Down Expand Up @@ -44,7 +43,7 @@ export function LocationPersonAttributeField({
}, [locationOptions, meta.value]);

// Callback for when updating the combobox input
const onInputChange = useCallback(
const handleInputChange = useCallback(
(value: string | null) => {
if (value) {
// If the value exists in the locationOptions (i.e. a label matches the input), exit the function
Expand Down Expand Up @@ -78,7 +77,7 @@ export function LocationPersonAttributeField({
titleText={label}
items={locationOptions}
placeholder={t('searchLocationPersonAttribute', 'Search location')}
onInputChange={onInputChange}
onInputChange={handleInputChange}
required={required}
onChange={handleSelect}
selectedItem={selectedItem}
Expand Down

0 comments on commit a4eb9d5

Please sign in to comment.