Skip to content

Commit

Permalink
fix: add dependencies array to useEffect so that it doesn't run on …
Browse files Browse the repository at this point in the history
…every render
  • Loading branch information
vardan-arm committed Jun 21, 2021
1 parent 980fea7 commit 205c48b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const PasscodeLock = observer(({
return () => {
removeKeyStatusChangedObserver();
};
});
}, [application]);

return (
<div className="sk-panel-section">
Expand Down

0 comments on commit 205c48b

Please sign in to comment.