fix: was returning forever as min
This commit is contained in:
parent
64acf8e2b1
commit
3e31468444
@ -292,7 +292,7 @@ export function durationMin(d1: Duration, d2: Duration): Duration {
|
||||
return { d_ms: d2.d_ms };
|
||||
}
|
||||
if (d2.d_ms === "forever") {
|
||||
return { d_ms: d2.d_ms };
|
||||
return { d_ms: d1.d_ms };
|
||||
}
|
||||
return { d_ms: Math.min(d1.d_ms, d2.d_ms) };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user