Skip to content

Commit

Permalink
fix change the useEffect to one-line
Browse files Browse the repository at this point in the history
  • Loading branch information
HezekielT committed Jul 5, 2023
1 parent 5af9a7a commit 3e94326
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/pages/settings/PasswordPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ function PasswordPage(props) {

const currentPasswordInputRef = useRef(null);

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

/**
* @param {String} field
Expand Down

0 comments on commit 3e94326

Please sign in to comment.