Skip to content

Commit

Permalink
fix: remove consoles
Browse files Browse the repository at this point in the history
Signed-off-by: Yash Sharma <[email protected]>
  • Loading branch information
Yashsharma1911 committed Jul 12, 2024
1 parent f77d836 commit a8561ac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/custom/UserSearchField/UserSearchField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,15 @@ const UserSearchField: React.FC<UserSearchFieldProps> = ({
};

const handleInputChange = (_event: React.SyntheticEvent<Element, Event>, value: string) => {
console.log('called handle change');
if (value === '') {
setOptions([]);
setOpen(false);
} else {
console.log('Inside else');
setSearchUserLoading(true);
fetchSuggestions(value).then((filteredData) => {
console.log('Inside then function', filteredData);
setOptions(filteredData);
setSearchUserLoading(false);
});
console.log('last');
setError(false);
setOpen(true);
}
Expand Down

0 comments on commit a8561ac

Please sign in to comment.