Skip to content

Commit

Permalink
Pass the file path when verifying a multi-part contract
Browse files Browse the repository at this point in the history
Fixes #2207
  • Loading branch information
tom2drum committed Sep 4, 2024
1 parent e2081d4 commit 3f1a871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/shared/forms/utils/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ async function readEntriesPromise(directoryReader: DirectoryReader): Promise<Arr
export function convertFileEntryToFile(entry: FileSystemFileEntry): Promise<File> {
return new Promise((resolve) => {
entry.file(async(file: File) => {
// const newFile = new File([ file ], entry.fullPath, { lastModified: file.lastModified, type: file.type });
resolve(file);
const newFile = new File([ file ], entry.fullPath, { lastModified: file.lastModified, type: file.type });
resolve(newFile);
});
});
}

0 comments on commit 3f1a871

Please sign in to comment.