From ff37abd9b969f71b5f9a73070dedef914796f7d8 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 2 Sep 2023 22:56:58 -0400 Subject: [PATCH] proper variable name --- src/components/messaging/MessageAttachment.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/messaging/MessageAttachment.tsx b/src/components/messaging/MessageAttachment.tsx index 90e98ae..bfd5f43 100644 --- a/src/components/messaging/MessageAttachment.tsx +++ b/src/components/messaging/MessageAttachment.tsx @@ -31,7 +31,7 @@ export default function MessageAttachment({ attachment, contextMenuItems, maxWid const url = attachment.proxy_url && attachment.proxy_url.length > 0 ? attachment.proxy_url : attachment.url; - let a: JSX.Element = <>; + let finalElement: JSX.Element = <>; if (attachment.content_type?.startsWith("image")) { const ratio = calculateImageRatio(attachment.width!, attachment.height!, maxWidth, maxHeight); const { scaledWidth, scaledHeight } = calculateScaledDimensions( @@ -41,12 +41,12 @@ export default function MessageAttachment({ attachment, contextMenuItems, maxWid maxWidth, maxHeight, ); - a = {attachment.filename}; + finalElement = {attachment.filename}; } else if (attachment.content_type?.startsWith("video")) { { /* TODO: poster thumbnail */ } - a = ( + finalElement = (