Skip to content

Commit 993c463

Browse files
Merge pull request #462 from topcoder-platform/fix-email-check
Fix check for user profile
2 parents e8cbce6 + 4907491 commit 993c463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src-ts/lib/profile-provider/profile-functions/profile-factory/profile.factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function create(profile: UserProfile, token: TokenModel, hasDiceEnabled:
1515
profile.isCustomer = !!token.roles?.some(role => role === UserRole.customer)
1616
profile.isMember = !profile.isCustomer
1717

18-
profile.isWipro = profile.email.endsWith('@wipro.com')
18+
profile.isWipro = profile.email?.endsWith('@wipro.com')
1919
profile.diceEnabled = hasDiceEnabled
2020

2121
// store roles for custom capability checks

0 commit comments

Comments
 (0)