Skip to content

Commit

Permalink
Fix timeout type (#40)
Browse files Browse the repository at this point in the history
In the user profile timezone code, which was failing a ts check.
  • Loading branch information
dbkr authored Sep 13, 2024
1 parent be59791 commit 9426fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useUserTimezone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { MatrixClient, MatrixError } from "matrix-js-sdk/src/matrix";
*/
export const useUserTimezone = (cli: MatrixClient, userId: string): { timezone: string; friendly: string } | null => {
const [timezone, setTimezone] = useState<string>();
const [updateInterval, setUpdateInterval] = useState<number>();
const [updateInterval, setUpdateInterval] = useState<ReturnType<typeof setTimeout>>();
const [friendly, setFriendly] = useState<string>();
const [supported, setSupported] = useState<boolean>();

Expand Down

0 comments on commit 9426fec

Please sign in to comment.