From 2625c1246bc08a56fd7075e8e80a177dd50277e7 Mon Sep 17 00:00:00 2001 From: Jun Wu Date: Tue, 4 Apr 2023 22:41:33 -0700 Subject: [PATCH] chore: removed redundant checkUsage `checkUsage()` was already called by another `useEffect`. There is no need to call it twice. --- app/components/settings.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/app/components/settings.tsx b/app/components/settings.tsx index 02c4415d..1b51356e 100644 --- a/app/components/settings.tsx +++ b/app/components/settings.tsx @@ -113,7 +113,6 @@ export function Settings(props: { closeSettings: () => void }) { useEffect(() => { checkUpdate(); - checkUsage(); // eslint-disable-next-line react-hooks/exhaustive-deps }, []);