utility.presence: fix start being longer than end timestamps failing to repeat

This commit is contained in:
Cynthia Foxwell 2023-08-24 16:49:32 -06:00
parent 87518e084f
commit be4210bd26
1 changed files with 1 additions and 1 deletions

View File

@ -964,7 +964,7 @@ presence.callback = async function (msg, line) {
const timePos = formatTime(position);
const progress =
activity.timestamps.start == activity.timestamps.end
activity.timestamps.start >= activity.timestamps.end
? 1
: position / length;
const barLength = Math.round(progress * NOWPLAYING_BAR_LENGTH);