summaryrefslogtreecommitdiffhomepage
path: root/src/routes/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/index.tsx')
-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, {