fix: Fix: improve error in InputFileComponent when displaying invalid file types (#5064)

* fix: Fix error in InputFileComponent when displaying invalid file types

The code changes in this commit fix an issue in the InputFileComponent where an error was not being displayed correctly when the file type was not allowed. The commit adds a fix to properly display the error message with the list of invalid file types.
This commit is contained in:
anovazzi1 2024-12-05 14:42:36 -03:00 committed by GitHub
commit d4b9e5e849
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,7 +80,7 @@ export default function InputFileComponent({
// Show an error if the file type is not allowed
setErrorData({
title: INVALID_FILE_ALERT,
list: fileTypes,
list: [fileTypes?.join(", ") || ""],
});
}
}