From 48a89b7e86bf58613eddd58ecf9499a4e6725f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janosch=20Mu=CC=88ller?= Date: Sat, 6 Jul 2024 19:52:35 +0200 Subject: [PATCH] Fix type --- javascript/src/hooks/use_delayed_loading_style.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/src/hooks/use_delayed_loading_style.tsx b/javascript/src/hooks/use_delayed_loading_style.tsx index 7ab1e56..8384293 100644 --- a/javascript/src/hooks/use_delayed_loading_style.tsx +++ b/javascript/src/hooks/use_delayed_loading_style.tsx @@ -2,7 +2,7 @@ import {useState} from "preact/hooks" export const useDelayedLoadingStyle = () => { const [enabled, setEnabled] = useState(false) - const [timer, setTimer] = useState(null) + const [timer, setTimer] = useState | null>(null) const startTimer = () => { if (timer) clearTimeout(timer)