From f3b202fe694b06c9f39c10f6dd80b50dbde00c48 Mon Sep 17 00:00:00 2001 From: realtradam Date: Sun, 16 Jun 2024 16:55:33 -0400 Subject: fix ts error --- src/routes/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 9a5f11b..4c2a666 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -9,7 +9,7 @@ import Layout from "../components/Layout"; export default function Index() { - const [userData, setUserData] = useState({}); + const [userData, setUserData] = useState({ name: '' }); useEffect(() => { const url = `${import.meta.env.VITE_API_TITLE}/api/v1/auth/data`; fetch(url, { -- cgit v1.2.3