Skip to content
Snippets Groups Projects
Verified Commit 461c15a6 authored by Dorian Koch's avatar Dorian Koch
Browse files

Download manager: fix total size, closes #84

parent 0da7b334
No related branches found
No related tags found
No related merge requests found
Pipeline #7134 passed
......@@ -345,7 +345,7 @@ export default function DownloadAllModal({ course }: { course: GetCourseResponse
(source) => sourceToName(source) === chosenQualities.current.get(lecture.id),
);
}
if (selectedQuality) {
if (selectedQuality && chosenLectures.current.get(lecture.id)) {
totalSize += Math.max(0, selectedQuality.size);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment