From d1d5498e31c6d672ba5a413784aad7c50f152c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Marseault?= <22910497+Larsluph@users.noreply.github.com> Date: Mon, 26 Jun 2023 14:45:30 +0200 Subject: [PATCH] fix: size error (#900) --- src/store/getters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/getters.ts b/src/store/getters.ts index 7ddaa299..3f542bbc 100644 --- a/src/store/getters.ts +++ b/src/store/getters.ts @@ -26,7 +26,7 @@ export default { .map(getters.getTorrent) .filter(torrent => torrent !== undefined) .map(torrent => torrent.size) - .reduce((partialSum, newVal) => partialSum + newVal) + .reduce((partialSum, newVal) => partialSum + newVal, 0) return i18n .tc('dashboard.selectedTorrentsCount', state.filteredTorrentsCount)