Fixed a bug in the ServerInfo.jsx
This commit is contained in:
parent
aad8dd083b
commit
11761b6487
@ -17,12 +17,13 @@ export const ServerInfo = ({status, uuid, serverInfo, setServerInfo, setAlert})
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (status !== "ONLINE") return;
|
||||
updateServerInfo();
|
||||
|
||||
const interval = setInterval(() => updateServerInfo(), 5000);
|
||||
|
||||
return () => clearInterval(interval);
|
||||
}, []);
|
||||
}, [status]);
|
||||
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user