Fixed a bug in the ServerInfo.jsx

This commit is contained in:
Mathias Wagner 2024-02-15 18:32:02 +01:00
parent 14c662a646
commit 75ad688ba7
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -17,7 +17,10 @@ export const ServerInfo = ({status, uuid, serverInfo, setServerInfo, setAlert})
}
useEffect(() => {
if (status !== "ONLINE") return;
if (status !== "ONLINE") {
setServerInfo(null);
return;
}
updateServerInfo();
const interval = setInterval(() => updateServerInfo(), 5000);