Преглед на файлове

chore: removed redundant checkUsage

`checkUsage()` was already called by another `useEffect`.
There is no need to call it twice.
Jun Wu преди 1 година
родител
ревизия
2625c1246b
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  1. 0 1
      app/components/settings.tsx

+ 0 - 1
app/components/settings.tsx

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