From 9426fec8c7bb2bd5f5045603a0016428e89f1ac1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 13 Sep 2024 14:15:10 +0100 Subject: [PATCH] Fix timeout type (#40) In the user profile timezone code, which was failing a ts check. --- src/hooks/useUserTimezone.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useUserTimezone.ts b/src/hooks/useUserTimezone.ts index 11198be1fa..686679bb90 100644 --- a/src/hooks/useUserTimezone.ts +++ b/src/hooks/useUserTimezone.ts @@ -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(); - const [updateInterval, setUpdateInterval] = useState(); + const [updateInterval, setUpdateInterval] = useState>(); const [friendly, setFriendly] = useState(); const [supported, setSupported] = useState();