diff --git a/src/pages/Profile/hooks/useProfileInfo.ts b/src/pages/Profile/hooks/useProfileInfo.ts index f54d17e..4ac836b 100644 --- a/src/pages/Profile/hooks/useProfileInfo.ts +++ b/src/pages/Profile/hooks/useProfileInfo.ts @@ -18,9 +18,9 @@ type ProfileData = { languages: string[]; }; -const useProfileInfo = (id: string) => { +const useProfileInfo = (id: string): [ProfileData, boolean] => { const [data, setData] = useState(null); - const [loading, setLoading] = useState(true); + const [loading, setLoading] = useState(true); useEffect(() => { request diff --git a/src/pages/main/index.tsx b/src/pages/main/index.tsx index 2ddb0da..3e35bd6 100644 --- a/src/pages/main/index.tsx +++ b/src/pages/main/index.tsx @@ -24,7 +24,7 @@ const Index = () => { > ,