Skip to content

Commit

Permalink
mvoe content const into renderCaption()
Browse files Browse the repository at this point in the history
  • Loading branch information
nexy7574 authored Dec 30, 2024
1 parent 0dd3d4e commit eb24ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/RenderMessageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ export function RenderMessageContent({
</UrlPreviewHolder>
);
};
const content: IImageContent = getContent();
const renderCaption = () => {
const content: IImageContent = getContent();
if(content.filename && content.filename !== content.body) {
return (
<MText
edited={edited}
content={getContent()}
content={content}
renderBody={(props) => (
<RenderBody
{...props}
Expand Down

0 comments on commit eb24ed2

Please sign in to comment.