Skip to content

Commit

Permalink
Add Unmount clearAccountMessages function
Browse files Browse the repository at this point in the history
  • Loading branch information
studentofcoding committed Oct 12, 2023
1 parent 0aeeae4 commit 880269f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/settings/Security/TwoFactorAuth/Steps/VerifyStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ function VerifyStep({account, session}) {

useEffect(() => {
Session.clearAccountMessages();
return () => {
Session.clearAccountMessages();
};
}, []);

useEffect(() => {
Expand Down

0 comments on commit 880269f

Please sign in to comment.