Skip to content

Commit

Permalink
Merge pull request #59 from harshgoel05/hg/fix/build
Browse files Browse the repository at this point in the history
🐛 Fix TypeError in Projects
  • Loading branch information
harshgoel05 authored Jan 31, 2021
2 parents 5a43324 + 725d28e commit 2bc7bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/utils/apiService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function getPersonalDetails(): Promise<PersonalDetails | boolean> {
export async function getProjectDetails(): Promise<Project[] | boolean> {
try {
const { data } = await axios.get(`${BASE_URL}/projects`);
return data.data;
return data;
} catch (err) {
return false;
}
Expand Down

1 comment on commit 2bc7bb9

@vercel
Copy link

@vercel vercel bot commented on 2bc7bb9 Jan 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.