Description
`hasActiveStreams` in `components/streams/dashboard-stats.tsx:21-33` calls `Math.floor(Date.now() / 1000)` four separate times across `.some()` predicates instead of computing it once.
Location
`components/streams/dashboard-stats.tsx:21-33`
Task
Extract a single `const nowSec = Math.floor(Date.now() / 1000)` local variable and reuse it across all four predicate checks.
Good for newcomers because
Small, mechanical refactor with no behavior change, in a short, self-contained block.
Description
`hasActiveStreams` in `components/streams/dashboard-stats.tsx:21-33` calls `Math.floor(Date.now() / 1000)` four separate times across `.some()` predicates instead of computing it once.
Location
`components/streams/dashboard-stats.tsx:21-33`
Task
Extract a single `const nowSec = Math.floor(Date.now() / 1000)` local variable and reuse it across all four predicate checks.
Good for newcomers because
Small, mechanical refactor with no behavior change, in a short, self-contained block.