summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-06-16 16:55:33 -0400
committerrealtradam <[email protected]>2024-06-16 16:55:33 -0400
commitf3b202fe694b06c9f39c10f6dd80b50dbde00c48 (patch)
tree595719d425a0e26a596c6330ca9910887bd07d33
parentc72edf37baf307322b49b7c75c59d077dda9bc83 (diff)
downloadmalcz.com-f3b202fe694b06c9f39c10f6dd80b50dbde00c48.tar.gz
malcz.com-f3b202fe694b06c9f39c10f6dd80b50dbde00c48.zip
fix ts error
-rw-r--r--src/routes/index.tsx2
1 files changed, 1 insertions, 1 deletions
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, {