diff --git a/src/app/api/contribs/route.ts b/src/app/api/contribs/route.ts index a107556..3f11ff3 100644 --- a/src/app/api/contribs/route.ts +++ b/src/app/api/contribs/route.ts @@ -27,8 +27,8 @@ export async function GET(req: NextRequest) { const data = await response.json(); const total = - data.data.user.contributionsCollection.contributionCalendar - .totalContributions; + data?.data?.user?.contributionsCollection?.contributionCalendar + ?.totalContributions; return NextResponse.json({ total }, { status: 200 }); } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 7db9358..28c1d98 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -17,7 +17,7 @@ export default function RootLayout({
- A 15 year old Software Engineer from Tirane, Albania, with 6 years - of experience, specializing in full-stack web development, desktop - applications, TUI apps, and hacking. I also have a deep interest - in low-level programming. -
++ A 15 year old Software Engineer from Tirane, Albania, with 6 years of + experience, specializing in full-stack web development, desktop + applications, TUI apps, and hacking. I also have a deep interest in + low-level programming. +
- {/* Socials and skill */} -