From d0f9da355ccbfbccb9711aa53b961ce63c9d7da4 Mon Sep 17 00:00:00 2001 From: Amit Raj Date: Mon, 3 Jun 2024 18:52:51 +0530 Subject: [PATCH] Change variable name --- .../block-editor/src/components/link-control/link-preview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/link-control/link-preview.js b/packages/block-editor/src/components/link-control/link-preview.js index 11d963f41633f6..35097c7fbdb843 100644 --- a/packages/block-editor/src/components/link-control/link-preview.js +++ b/packages/block-editor/src/components/link-control/link-preview.js @@ -72,7 +72,7 @@ export default function LinkPreview( { .replace( /^www\./i, '' ); } - const isTitleRedundant = + const isUrlRedundant = value?.url && filterTitleForDisplay( displayTitle ) === displayURL; let icon; @@ -128,7 +128,7 @@ export default function LinkPreview( { { displayTitle } - { ! isTitleRedundant && ( + { ! isUrlRedundant && ( { displayURL }