Skip to content

Commit

Permalink
fix : Search retains previous input after closing the modal instead o…
Browse files Browse the repository at this point in the history
…f resetting to default data
  • Loading branch information
raggettii authored Dec 19, 2024
1 parent 8169150 commit 4b45d85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/screens/OrganizationPeople/AddMember.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ function AddMember(): JSX.Element {
function openAddUserModal(): void {
setAddUserModalIsOpen(true);
}
useEffect(() => {
setUserName('');
}, [addUserModalisOpen]);

const toggleDialogModal = (): void =>
setAddUserModalIsOpen(!addUserModalisOpen);
Expand Down

0 comments on commit 4b45d85

Please sign in to comment.