fix: episode duration on release page

This commit is contained in:
Kentai Radiquum 2024-09-23 18:29:58 +05:00
parent 35e663ab52
commit d482750576
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
3 changed files with 3 additions and 2 deletions

View file

@ -200,7 +200,7 @@ export function minutesToTime(
if (h > 0) return hDisplay;
if (m > 0) return mDisplay;
} else {
return `${dDisplay}${h > 0 && ", " + hDisplay}${m > 0 && ", " + mDisplay}`;
return `${d > 0 ? dDisplay : ""}${h > 0 ? ", " + hDisplay : ""}${m > 0 ? ", " + mDisplay : ""}`;
}
}