mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-27 12:26:33 -08:00
Update gui/src/hooks/app.ts
Co-authored-by: Sapphire <[email protected]>
This commit is contained in:
1 parent
185431a733
commit
dfc4383271
1 file changed
+1
-3
@@ -63,9 +63,7 @@ export function useProvideAppContext(): AppContext {
|
||||
if (!config) return;
|
||||
|
||||
const interval = setInterval(() => {
|
||||
fetchCurrentFirmwareRelease(config.uuid).then((res) =>
|
||||
setCurrentFirmwareRelease(res)
|
||||
);
|
||||
fetchCurrentFirmwareRelease(config.uuid).then(setCurrentFirmwareRelease);
|
||||
}, 1000);
|
||||
return () => {
|
||||
clearInterval(interval);
|
||||
|
||||
Reference in new issue
Block a user