Skip to content

Commit

Permalink
Fix search end message not to display after reset search
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaewoook committed Aug 14, 2022
1 parent 3fe051f commit 94c62e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export const App = (props: Props) => {

const handleResetClick = useCallback(() => {
setSearchValue("");
setIsEnd(false);
handleSearchClick();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
Expand Down

0 comments on commit 94c62e8

Please sign in to comment.