diff --git a/src/Utilities/useDebounce.tsx b/src/Utilities/useDebounce.tsx index 4ef276d5..d104ef96 100644 --- a/src/Utilities/useDebounce.tsx +++ b/src/Utilities/useDebounce.tsx @@ -15,7 +15,7 @@ function useDebounce( if (!isEqual(value, debouncedValue)) { const timer = setTimeout( () => setDebouncedValue(value), - value === '' ? 0 : delay !== undefined ? delay : 500 //If value is empty string, instantly return + value === '' ? 0 : delay //If value is empty string, instantly return ); return () => {