remove comments

This commit is contained in:
hamid zarghami
2025-08-17 11:31:29 +03:30
parent bec4c2c1d1
commit 561bf9d5d5
26 changed files with 13 additions and 172 deletions
-3
View File
@@ -38,7 +38,6 @@ const EmailInput: FC<EmailInputProps> = ({
return
}
// Always search via API for fresh results
if (onSearchSuggestions) {
if (searchTimeoutRef.current) {
clearTimeout(searchTimeoutRef.current)
@@ -51,7 +50,6 @@ const EmailInput: FC<EmailInputProps> = ({
setSelectedSuggestionIndex(-1)
}
// Update filtered suggestions when API suggestions change
useEffect(() => {
if (suggestions.length > 0) {
const filtered = suggestions
@@ -63,7 +61,6 @@ const EmailInput: FC<EmailInputProps> = ({
setFilteredSuggestions(filtered)
setShowSuggestions(filtered.length > 0 && to.trim().length > 0)
} else if (to.trim() === '') {
// Clear suggestions when input is empty
setFilteredSuggestions([])
setShowSuggestions(false)
}