Skip to content

Commit

Permalink
fix: add null check for profile.school
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavilien committed Feb 8, 2025
1 parent 1e9492c commit 960bc9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const computeAnalytics = async (): Promise<Stats> => {
stats.submitted += isProfileComplete ? 1 : 0;

if (isProfileComplete && !isCMU) {
isCMU = profile.school.includes("Carnegie Mellon");
isCMU = profile?.school?.includes("Carnegie Mellon");
}

// Count accepted
Expand Down

0 comments on commit 960bc9e

Please sign in to comment.