diff --git a/packages/block-library/src/social-link/edit.js b/packages/block-library/src/social-link/edit.js index ea7032b0d6789..08c8360404035 100644 --- a/packages/block-library/src/social-link/edit.js +++ b/packages/block-library/src/social-link/edit.js @@ -23,7 +23,7 @@ import { PanelRow, TextControl, } from '@wordpress/components'; -import { __, sprintf } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { keyboardReturn } from '@wordpress/icons'; /** @@ -114,8 +114,7 @@ const SocialLinkEdit = ( { const [ popoverAnchor, setPopoverAnchor ] = useState( null ); const IconComponent = getIconBySite( service ); - const socialLinkName = getNameBySite( service ); - const socialLinkLabel = label ? label : socialLinkName; + const socialLinkLabel = label ? label : getNameBySite( service ); const blockProps = useBlockProps( { className: classes, style: { @@ -127,13 +126,7 @@ const SocialLinkEdit = ( { return ( <> - +