Skip to content

Commit

Permalink
Combine duplicate markup.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Sep 20, 2024
1 parent 28a15ab commit 33d39ae
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions assets/js/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,22 +436,11 @@ function Edit( props ) {
{src ? (
<>
<div className="wp-block-podcasting-podcast__container">
{displayArt && featuredImageUrl && (
{displayArt && (featuredImageUrl || showImage) && (
<div className="wp-block-podcasting-podcast__show-art">
<div className="wp-block-podcasting-podcast__image">
<img
src={featuredImageUrl}
alt={showName}
/>
</div>
</div>
)}

{displayArt && !featuredImageUrl && showImage && (
<div className="wp-block-podcasting-podcast__show-art">
<div className="wp-block-podcasting-podcast__image">
<img
src={showImage}
src={featuredImageUrl ? featuredImageUrl : showImage}
alt={showName}
/>
</div>
Expand Down

0 comments on commit 33d39ae

Please sign in to comment.