mirror of
https://git.mirrors.martin98.com/https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-08-15 21:05:54 +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:
parent
bd7567fa85
commit
2625c1246b
@ -113,7 +113,6 @@ export function Settings(props: { closeSettings: () => void }) {
|
||||
|
||||
useEffect(() => {
|
||||
checkUpdate();
|
||||
checkUsage();
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user