Upload improvements for imgproxy.
This commit is contained in:
@@ -46,7 +46,7 @@ export function UploadProgress({
|
||||
const total = Object.keys(photoUploadProgress).length;
|
||||
if (total === 0) return 0;
|
||||
const completed = Object.values(photoUploadProgress).filter(
|
||||
(p) => p.progress === 100
|
||||
(p) => p.progress === 1
|
||||
).length;
|
||||
return completed / total;
|
||||
}, [photoUploadProgress]);
|
||||
|
||||
Reference in New Issue
Block a user