diff --git a/src/components/FileUpload.tsx b/src/components/FileUpload.tsx index 9bd4b42..88a95ed 100644 --- a/src/components/FileUpload.tsx +++ b/src/components/FileUpload.tsx @@ -75,7 +75,7 @@ const FileUpload: React.FC = ({ uploadUrl }) => { console.error("Upload failed:", error); setError("An error occurred while uploading. Please try again."); } - } else { + } catch (error) { setError("Please select files to upload."); } };