Skip to content

Commit

Permalink
Fix isUrlRedundant check in LinkPreview component
Browse files Browse the repository at this point in the history
  • Loading branch information
amitraj2203 committed Jun 6, 2024
1 parent 2913c81 commit a8291bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function LinkPreview( {
stripHTML( richData?.title || value?.title || displayURL );

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

let icon;

Expand Down

0 comments on commit a8291bf

Please sign in to comment.