Skip to content

Commit d0c2ce4

Browse files
authored
Merge pull request #92 from DakaraProject/fix/playlist_end_date
Fix wrong estimation of remaining time
2 parents 69d54c8 + 2a904d5 commit d0c2ce4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jsx/components/playlistApp/PlaylistInfoBar.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ class PlaylistInfoBar extends Component {
6464
* well together. At least, the code is easy to understand.
6565
*/
6666

67-
const playlistEndDate = dateEnd && count ? dayjs(dateEnd) : null
67+
const playlistEndDate = dateEnd &&
68+
(count || playerStatus.playlist_entry) ? dayjs(dateEnd) : null
6869
const karaokeEndDate = dateStop ? dayjs(dateStop) : null
6970

7071
let dateEndWidget

0 commit comments

Comments
 (0)