From c135be012cfcd6f63a6b6130692431cb5daa823b Mon Sep 17 00:00:00 2001 From: grafixeyehero Date: Thu, 30 May 2024 15:39:25 +0300 Subject: [PATCH] apply suggestion --- src/components/search/SearchFields.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/search/SearchFields.tsx b/src/components/search/SearchFields.tsx index 8de9f1680e..d2be6c26b3 100644 --- a/src/components/search/SearchFields.tsx +++ b/src/components/search/SearchFields.tsx @@ -27,8 +27,7 @@ const SearchFields: FC = ({ const inputValue = inputRef.current?.value || ''; if (value === 'backspace') { - onSearch(inputValue.length ? inputValue.substring(0, inputValue.length - 1) : '' - ); + onSearch(inputValue.length ? inputValue.substring(0, inputValue.length - 1) : ''); } else { onSearch(inputValue + value); }