From ff9a14a8b5b304c0b08eacedc4c9e4d1a661883e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 28 Mar 2024 20:38:31 -0400 Subject: [PATCH] fix: bad hash progress calc --- app/components/lib/uppy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/lib/uppy.ts b/app/components/lib/uppy.ts index 4b85254..1151e0f 100644 --- a/app/components/lib/uppy.ts +++ b/app/components/lib/uppy.ts @@ -108,7 +108,7 @@ export function useUppy() { uppyInstance.current?.emit("preprocess-progress", file, { mode: "determinate", message: "Hashing file...", - value: Math.round((event.total / event.total) * 100), + value: Math.round((event.bytes / event.total) * 100), }); }; const options = await sdk.protocols!()