Fixed a bug in the ServerInfo.jsx
This commit is contained in:
parent
14c662a646
commit
75ad688ba7
@ -17,7 +17,10 @@ export const ServerInfo = ({status, uuid, serverInfo, setServerInfo, setAlert})
|
|||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (status !== "ONLINE") return;
|
if (status !== "ONLINE") {
|
||||||
|
setServerInfo(null);
|
||||||
|
return;
|
||||||
|
}
|
||||||
updateServerInfo();
|
updateServerInfo();
|
||||||
|
|
||||||
const interval = setInterval(() => updateServerInfo(), 5000);
|
const interval = setInterval(() => updateServerInfo(), 5000);
|
||||||
|
Reference in New Issue
Block a user