We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 185431a commit dfc4383Copy full SHA for dfc4383
gui/src/hooks/app.ts
@@ -63,9 +63,7 @@ export function useProvideAppContext(): AppContext {
63
if (!config) return;
64
65
const interval = setInterval(() => {
66
- fetchCurrentFirmwareRelease(config.uuid).then((res) =>
67
- setCurrentFirmwareRelease(res)
68
- );
+ fetchCurrentFirmwareRelease(config.uuid).then(setCurrentFirmwareRelease);
69
}, 1000);
70
return () => {
71
clearInterval(interval);
0 commit comments