소스 검색

fix: fixed issue where playlist total duration didn't show correctly

Kristian Vos 5 년 전
부모
커밋
b30e2fd86c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      frontend/components/Modals/Playlists/Edit.vue

+ 1 - 1
frontend/components/Modals/Playlists/Edit.vue

@@ -216,7 +216,7 @@ export default {
 				return "";
 			};
 
-			const minutes = Math.floor((duration - hours) / 60);
+			const minutes = Math.floor((duration - hours * 60 * 60) / 60);
 			const formatMinutes = () => {
 				if (minutes > 0) {
 					if (minutes > 1) {