From f2fab66626344bae8f8feb4912c1ffef76aa72ae Mon Sep 17 00:00:00 2001 From: Marco Piovanello <35533749+marcopeocchi@users.noreply.github.com> Date: Tue, 26 Mar 2024 11:24:00 +0100 Subject: [PATCH] fixed cumulative download bug --- frontend/src/components/Downloads.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Downloads.tsx b/frontend/src/components/Downloads.tsx index 1b114bd..57bfa22 100644 --- a/frontend/src/components/Downloads.tsx +++ b/frontend/src/components/Downloads.tsx @@ -17,7 +17,7 @@ const Downloads: React.FC = () => { useEffect(() => { setTotalDownloadSpeed( - downloads.map(d => d.progress.speed).reduce((curr, next) => curr + next) + downloads.map(d => d.progress.speed).reduce((curr, next) => curr + next, 0) ) }, [downloads])