mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 18:55:58 +03:00
Fix timeout type (#40)
In the user profile timezone code, which was failing a ts check.
This commit is contained in:
parent
be59791db1
commit
9426fec8c7
1 changed files with 1 additions and 1 deletions
|
@ -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>();
|
||||
|
||||
|
|
Loading…
Reference in a new issue