fix: size error (#900)

This commit is contained in:
Rémi Marseault 2023-06-26 14:45:30 +02:00 committed by GitHub
parent c69850872f
commit d1d5498e31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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