Skip to content

Commit

Permalink
Change variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
amitraj2203 committed Jun 3, 2024
1 parent bd7471f commit d0f9da3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function LinkPreview( {
.replace( /^www\./i, '' );
}

const isTitleRedundant =
const isUrlRedundant =
value?.url && filterTitleForDisplay( displayTitle ) === displayURL;

let icon;
Expand Down Expand Up @@ -128,7 +128,7 @@ export default function LinkPreview( {
{ displayTitle }
</Truncate>
</ExternalLink>
{ ! isTitleRedundant && (
{ ! isUrlRedundant && (
<span className="block-editor-link-control__search-item-info">
<Truncate numberOfLines={ 1 }>
{ displayURL }
Expand Down

0 comments on commit d0f9da3

Please sign in to comment.