From 3cc23dd6cab886f061c4893a36b2309bcd76830a Mon Sep 17 00:00:00 2001 From: Manzoor Wani Date: Mon, 21 Oct 2024 03:11:18 -0700 Subject: [PATCH] Social | Fix Bluesky display name when it's not set in user profile (#39840) --- .../changelog/fix-social-bluesky-display-name | 4 ++++ .../src/components/connection-management/connection-name.tsx | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 projects/js-packages/publicize-components/changelog/fix-social-bluesky-display-name diff --git a/projects/js-packages/publicize-components/changelog/fix-social-bluesky-display-name b/projects/js-packages/publicize-components/changelog/fix-social-bluesky-display-name new file mode 100644 index 0000000000000..ec1589efa9688 --- /dev/null +++ b/projects/js-packages/publicize-components/changelog/fix-social-bluesky-display-name @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Social: Fixed Bluesky display name when it's not set in Bluesky profile diff --git a/projects/js-packages/publicize-components/src/components/connection-management/connection-name.tsx b/projects/js-packages/publicize-components/src/components/connection-management/connection-name.tsx index 5259df0d9ea5b..858d1c6bffebe 100644 --- a/projects/js-packages/publicize-components/src/components/connection-management/connection-name.tsx +++ b/projects/js-packages/publicize-components/src/components/connection-management/connection-name.tsx @@ -27,7 +27,9 @@ export function ConnectionName( { connection }: ConnectionNameProps ) { return (
{ ! connection.profile_link ? ( - { connection.display_name } + + { connection.display_name || connection.external_name } + ) : ( { connection.display_name || connection.external_display }