Merge pull request #19596 from AmbrishRamachandiran/profile-email-check

conditionally rendering the user email in user profile card
This commit is contained in:
Ben Lambert
2023-08-29 10:08:36 +02:00
committed by GitHub
2 changed files with 10 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-user-settings': patch
---
conditionally rendering the user email in user profile card
@@ -37,9 +37,11 @@ export const UserSettingsProfileCard = () => {
<Typography variant="subtitle1" gutterBottom>
{displayName}
</Typography>
<Typography variant="body2" color="textSecondary">
{profile.email}
</Typography>
{profile.email && (
<Typography variant="body2" color="textSecondary">
{profile.email}
</Typography>
)}
</Grid>
</Grid>
<Grid item>