Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 9426fec

Browse files
authored
Fix timeout type (#40)
In the user profile timezone code, which was failing a ts check.
1 parent be59791 commit 9426fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useUserTimezone.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { MatrixClient, MatrixError } from "matrix-js-sdk/src/matrix";
2929
*/
3030
export const useUserTimezone = (cli: MatrixClient, userId: string): { timezone: string; friendly: string } | null => {
3131
const [timezone, setTimezone] = useState<string>();
32-
const [updateInterval, setUpdateInterval] = useState<number>();
32+
const [updateInterval, setUpdateInterval] = useState<ReturnType<typeof setTimeout>>();
3333
const [friendly, setFriendly] = useState<string>();
3434
const [supported, setSupported] = useState<boolean>();
3535

0 commit comments

Comments
 (0)