Skip to content

Commit

Permalink
Fix: Create user when emailAddress is unavailable (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Onokaev authored Oct 25, 2021
1 parent 36ca6c2 commit 14e0b2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/views/sidebar/sample-queries/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ export function getTokens(user?: any) {
return 'contoso.com';
},
authenticatedUserValueFn: () => {
return emailAddress.split('@')[1];
if (emailAddress) {
return emailAddress.split('@')[1];
}
return '';
}
},
{
Expand Down

0 comments on commit 14e0b2f

Please sign in to comment.