Skip to content

Commit

Permalink
Fix after coderabbit, added null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
veronikasif committed Oct 4, 2024
1 parent 126007a commit f2b6b3f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ export const getCurrentSchoolName = (application: Application) => {
application.externalData,
)

if (!primaryOrgId || !childMemberships) {
return undefined
}

// Find the school name since we only have primary org id
return childMemberships
.map((membership) => membership.organization)
Expand Down

0 comments on commit f2b6b3f

Please sign in to comment.