fix(call-to-play): extend from the current deadline

Pass the effective nomination deadline into the Add time action and extend
from whichever is later: that deadline or the current time. This preserves
remaining time when a call becomes ready early while still giving an overdue
call a fresh five-minute window.

Test Plan:
- just fmt
- just frontend-test
- just build
- git diff --cached --check
This commit is contained in:
ddidderr committed 2026-07-23 18:05:21 +02:00
1 parent 9c34efa705
commit 8d3affe19c
4 files changed
+29 -4

No files matched your search

@@ -343,7 +343,10 @@ const CardActions = ({
if (accepted && game) onLaunch(game);
})}
><Icon.play /><span>{game ? 'Start now' : 'Mark as running'}</span></button>
<button className="ghost-btn" onClick={() => actions.addTime(nomination.id)}>
<button
className="ghost-btn"
onClick={() => actions.addTime(nomination.id, nomination.deadline)}
>
Add 5 more minutes
</button>
</>