Fix: Remove empty values from recently search value (#1807)

* fix: fix miner changes

* Fix: remove empty values from recently search term
This commit is contained in:
Shailesh Parmar 2021-12-16 19:42:52 +05:30 committed by GitHub
parent b422b150d7
commit 3d50f15e97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,9 @@ const Appbar: React.FC = (): JSX.Element => {
const target = e.target as HTMLInputElement;
if (e.key === 'Enter') {
setIsOpen(false);
addToRecentSearched(target.value);
if (target.value) {
addToRecentSearched(target.value);
}
history.push(
getExplorePathWithSearch(
target.value,