We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2bee27 commit c50f57aCopy full SHA for c50f57a
1 file changed
https/front/components/AppLayout.js
@@ -19,7 +19,9 @@ const AppLayout = ({ children }) => {
19
const { me } = useSelector((state) => state.user);
20
21
const onSearch = useCallback(() => {
22
- Router.push(`/hashtag/${searchInput}`);
+ if (searchInput) {
23
+ Router.push(`/hashtag/${searchInput}`);
24
+ }
25
}, [searchInput]);
26
27
return (
0 commit comments