fixed cumulative download bug

This commit is contained in:
Marco Piovanello
2024-03-26 11:24:00 +01:00
committed by GitHub
parent 86db8176ff
commit f2fab66626

View File

@@ -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])