mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-19 22:18:38 +08:00
chore: removed redundant checkUsage
`checkUsage()` was already called by another `useEffect`. There is no need to call it twice.
This commit is contained in:
@@ -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
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user