mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Making sure that search input has atleast one letter to save in local storage
This commit is contained in:
parent
fcca0e508b
commit
95ce2d72ab
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ export function LibrarySearchBar(props: LibrarySearchBarProps): JSX.Element {
|
|||
}}
|
||||
onClick={(event) => {
|
||||
event.preventDefault()
|
||||
if (inputValue !== null) {
|
||||
if (inputValue && inputValue.length > 0) {
|
||||
localStorage.setItem(inputValue, inputValue)
|
||||
setRecentSearches(Object.values(localStorage))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue