Skip to content

Commit c50f57a

Browse files
authored
Update AppLayout.js
1 parent d2bee27 commit c50f57a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

https/front/components/AppLayout.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ const AppLayout = ({ children }) => {
1919
const { me } = useSelector((state) => state.user);
2020

2121
const onSearch = useCallback(() => {
22-
Router.push(`/hashtag/${searchInput}`);
22+
if (searchInput) {
23+
Router.push(`/hashtag/${searchInput}`);
24+
}
2325
}, [searchInput]);
2426

2527
return (

0 commit comments

Comments
 (0)