Skip to content

Commit

Permalink
Disable search when input is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
kacpersaw committed Oct 18, 2024
1 parent 0631014 commit ab2c62c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Search/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const Search = () => {

const onClickHandler = async () => {
switch (searchValue.length) {
case 0:
break;
case addressLength:
case addressTestLength:
navigate(`/accounts/${searchValue}`);
Expand Down

0 comments on commit ab2c62c

Please sign in to comment.