diff options
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/time.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-util/src/time.ts b/packages/taler-util/src/time.ts index 695d6d274..f12e8d32b 100644 --- a/packages/taler-util/src/time.ts +++ b/packages/taler-util/src/time.ts @@ -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) }; } |