Skip to content

Commit dfc4383

Browse files
Update gui/src/hooks/app.ts
Co-authored-by: Sapphire <[email protected]>
1 parent 185431a commit dfc4383

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gui/src/hooks/app.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ export function useProvideAppContext(): AppContext {
6363
if (!config) return;
6464

6565
const interval = setInterval(() => {
66-
fetchCurrentFirmwareRelease(config.uuid).then((res) =>
67-
setCurrentFirmwareRelease(res)
68-
);
66+
fetchCurrentFirmwareRelease(config.uuid).then(setCurrentFirmwareRelease);
6967
}, 1000);
7068
return () => {
7169
clearInterval(interval);

0 commit comments

Comments
 (0)