Fix draft pause clock: use Math.ceil consistently via shared msToSeconds helper #78
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/draft-pause-clock-rounding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
onDraftPaused) usedMath.floorwhile the client countdown usedMath.ceil, causing the visible clock to round down by 1 second the moment you clicked pausedraft-state-sync(sent to reconnecting clients) also usedMath.floor, so reconnecting mid-countdown showed a different value than other clientsmsToSeconds(ms)toapp/lib/draft-timer.tsas the single source of truth — all four call sites across server and client now go through the same function, making a floor/ceil regression structurally impossibleTest plan
🤖 Generated with Claude Code