Skip to content

Commit b7e3c99

Browse files
committed
dude sometimes I swear I hate react
1 parent 544edc5 commit b7e3c99

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

site/src/hooks/useTime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function useTime<T>(func: () => T, options: UseTimeOptions = {}): T {
3737
return () => {
3838
clearInterval(handle);
3939
};
40-
}, [disabled, interval]);
40+
}, [thunk, disabled, interval]);
4141

4242
return computedValue;
4343
}

site/src/pages/WorkspacePage/ActivityStatus.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import dayjs from "dayjs";
33
import relativeTime from "dayjs/plugin/relativeTime";
44
import Tooltip from "@mui/material/Tooltip";
55
import type { Workspace } from "api/typesGenerated";
6-
import { useTime } from "hooks/useTime";
76
import type { WorkspaceActivityStatus } from "modules/workspaces/activity";
87
import { Pill } from "components/Pill/Pill";
98

0 commit comments

Comments
 (0)