diff --git a/.changeset/khaki-spiders-sniff.md b/.changeset/khaki-spiders-sniff.md new file mode 100644 index 0000000000..53798a6cf0 --- /dev/null +++ b/.changeset/khaki-spiders-sniff.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-user-settings': patch +--- + +conditionally rendering the user email in user profile card diff --git a/plugins/user-settings/src/components/General/UserSettingsProfileCard.tsx b/plugins/user-settings/src/components/General/UserSettingsProfileCard.tsx index 3c49121cfc..c96d2bb21e 100644 --- a/plugins/user-settings/src/components/General/UserSettingsProfileCard.tsx +++ b/plugins/user-settings/src/components/General/UserSettingsProfileCard.tsx @@ -37,9 +37,11 @@ export const UserSettingsProfileCard = () => { {displayName} - - {profile.email} - + {profile.email && ( + + {profile.email} + + )}