Skip to content

Commit

Permalink
chore: removed redundant checkUsage
Browse files Browse the repository at this point in the history
`checkUsage()` was already called by another `useEffect`.
There is no need to call it twice.
  • Loading branch information
quark-zju committed Apr 5, 2023
1 parent bd7567f commit 2625c12
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export function Settings(props: { closeSettings: () => void }) {

useEffect(() => {
checkUpdate();
checkUsage();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

Expand Down

0 comments on commit 2625c12

Please sign in to comment.