chore: removed redundant checkUsage

`checkUsage()` was already called by another `useEffect`.
There is no need to call it twice.
main
Jun Wu 2 years ago committed by GitHub
parent bd7567fa85
commit 2625c1246b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save