We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ce0c85 commit ab901cbCopy full SHA for ab901cb
1 file changed
services/libs/data-access-layer/src/organizations/identities.ts
@@ -146,7 +146,7 @@ export async function upsertOrgIdentities(
146
147
export type OrganizationVerifiedPrimaryDomains = {
148
orgId: string
149
- displayName: string
+ displayName: string | null
150
domains: string[]
151
}
152
@@ -204,7 +204,7 @@ export function preferCompanyOverUniversityWhenOverlapping<T extends { organizat
204
205
// If we find the org, check if it's a university based on name or .edu domain
206
const isUniversity = org
207
- ? org.displayName.toLowerCase().includes('university') ||
+ ? (org.displayName?.includes('university') ?? false) ||
208
org.domains.some((d) => d.endsWith('.edu'))
209
: false
210
0 commit comments