- Pause snapshot used Math.floor while the client display used Math.ceil, causing the visible clock to round down by 1s on pause click - draft-state-sync also used Math.floor for reconnecting clients - Extract msToSeconds() to app/lib/draft-timer.ts as the single source of truth for all ms→seconds conversions across server and client Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| app.ts | ||
| db.ts | ||
| logger.ts | ||
| overnight-pause-check.ts | ||
| snapshots.ts | ||
| socket.d.ts | ||
| socket.ts | ||
| timer.ts | ||
| types.d.ts | ||
| virtual-modules.d.ts | ||