Skip to content

Commit

Permalink
fix: code refactoring to use just one caption for all options
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB committed Sep 4, 2024
1 parent 8aa6085 commit 5a5102a
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ const ViewBlock = ({
{...embedSettings}
/>
)}
{showVideoCaption && (
<p className="px-3 mt-2 figure-caption">{data.title}</p>
)}
</>
) : (
<>
Expand Down Expand Up @@ -146,13 +143,13 @@ const ViewBlock = ({
) : (
<div className="invalidVideoFormat" />
)}
{showVideoCaption && (
<p className="px-3 mt-2 figure-caption">{data.title}</p>
)}
</>
)}
</>
)}
{showVideoCaption && (
<p className="px-3 mt-2 figure-caption">{data.title}</p>
)}
</ConditionalEmbed>
</div>
) : null;
Expand Down

0 comments on commit 5a5102a

Please sign in to comment.