Skip to content

Commit cdd5806

Browse files
fix: build error
1 parent 6ea8289 commit cdd5806

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

client/src/resumable.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,30 +92,30 @@ export const useResumable = ({
9292
);
9393
});
9494

95-
resumable.on("fileError", (file) => {
96-
const file = findFile(file);
95+
resumable.on("fileError", (resumableFile) => {
96+
const file = findFile(resumableFile);
9797

9898
if (!file) return;
9999

100100
file.status = "error";
101101
});
102102

103-
resumable.on("fileRetry", (file) => {
104-
const file = findFile(file);
103+
resumable.on("fileRetry", (resumableFile) => {
104+
const file = findFile(resumableFile);
105105

106106
if (!file) return;
107107

108108
file.status = "retrying";
109109
});
110110

111-
resumable.on("fileProgress", (file) => {
112-
const localFile = findFile(file);
111+
resumable.on("fileProgress", (resumableFile) => {
112+
const file = findFile(resumableFile);
113113

114-
if (!localFile) return;
114+
if (!file) return;
115115

116116
// if we are doing multiple chunks we may get a lower progress number if one chunk response comes back early
117-
const progress = file.progress();
118-
if (progress > localFile.progress) localFile.progress = progress;
117+
const progress = resumableFile.progress();
118+
if (progress > file.progress) file.progress = progress;
119119
});
120120

121121
return { files };

0 commit comments

Comments
 (0)