Skip to content

Commit

Permalink
feature/SCIHUB-730 fixed typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Nofz committed Jul 7, 2023
1 parent b0bd130 commit d6ac27c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const useFileConvertion = () => {
const onFileConvert = async (files: FileList) => {
const [file] = files;

if (!onFileValidation(file)) {
if (onFileValidation && !onFileValidation(file)) {
return;
}

Expand Down

0 comments on commit d6ac27c

Please sign in to comment.