Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -78,6 +78,10 @@ const MyInput = ({ | ... | @@ -78,6 +78,10 @@ const MyInput = ({ |
78 | </InputWrap> | 78 | </InputWrap> |
79 | <SearchIconWrap | 79 | <SearchIconWrap |
80 | onClick={() => { | 80 | onClick={() => { |
81 | + if (query === '') { | ||
82 | + alert('검색어를 입력 해 주세요.'); | ||
83 | + return; | ||
84 | + } | ||
81 | const params = new URLSearchParams({ query }); | 85 | const params = new URLSearchParams({ query }); |
82 | history.push(`search?${decodeURIComponent(params.toString())}`); | 86 | history.push(`search?${decodeURIComponent(params.toString())}`); |
83 | }} | 87 | }} | ... | ... |
-
Please register or login to post a comment