fix: add dependencies array to useEffect so that it doesn't run on every render

This commit is contained in:
VardanHakobyan
2021-06-21 19:20:38 +03:00
parent 980fea7313
commit 205c48b0e0

View File

@@ -168,7 +168,7 @@ const PasscodeLock = observer(({
return () => {
removeKeyStatusChangedObserver();
};
});
}, [application]);
return (
<div className="sk-panel-section">