From 835d71727c6771af954c2dd6c73f03d03ba93fa4 Mon Sep 17 00:00:00 2001 From: jay98 <41745017+jayamrutiya@users.noreply.github.com> Date: Tue, 14 Oct 2025 20:05:41 +0530 Subject: [PATCH] fix: remove redundant conditional operator for file assignment (#2060) --- frontend/src/components/FileUpload.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/FileUpload.tsx b/frontend/src/components/FileUpload.tsx index 4d5f68ac..33d40451 100644 --- a/frontend/src/components/FileUpload.tsx +++ b/frontend/src/components/FileUpload.tsx @@ -101,7 +101,7 @@ export const FileUpload = ({ const filesToUpload = multiple ? acceptedFiles : [acceptedFiles[0]]; onUpload(filesToUpload); - const file = multiple ? acceptedFiles[0] : acceptedFiles[0]; + const file = acceptedFiles[0]; setCurrentFile(file); if (showPreview && file.type.startsWith('image/')) {