Skip to content

Commit 2bc7bb9

Browse files
authored
Merge pull request #59 from harshgoel05/hg/fix/build
🐛 Fix TypeError in Projects
2 parents 5a43324 + 725d28e commit 2bc7bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/utils/apiService.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function getPersonalDetails(): Promise<PersonalDetails | boolean> {
1515
export async function getProjectDetails(): Promise<Project[] | boolean> {
1616
try {
1717
const { data } = await axios.get(`${BASE_URL}/projects`);
18-
return data.data;
18+
return data;
1919
} catch (err) {
2020
return false;
2121
}

0 commit comments

Comments
 (0)