chore: removed redundant checkUsage

`checkUsage()` was already called by another `useEffect`.
There is no need to call it twice.
This commit is contained in:
Jun Wu 2023-04-04 22:41:33 -07:00 committed by GitHub
parent 91f0dfabd4
commit 9ddb8df17e

View File

@ -113,7 +113,6 @@ export function Settings(props: { closeSettings: () => void }) {
useEffect(() => {
checkUpdate();
checkUsage();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);