Explorar el Código

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

Kristian Vos hace 5 años
padre
commit
b30e2fd86c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {