Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/components/CompletionScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type CompletionScreenProps = {

export function CompletionScreen({
dayNumber,
duration,
duration: completedDuration,
clearPercent,
thoughtCount,
thoughts,
Expand All @@ -26,7 +26,8 @@ export function CompletionScreen({
const [noteSaved, setNoteSaved] = useState(false);
const [saving, setSaving] = useState(false);
const [saveError, setSaveError] = useState(false);
const nextDuration = duration + INCREMENT;
// Progression is based on the user's completed day, not the just-finished sit length.
const nextDuration = BASE_DURATION + dayNumber * INCREMENT;
const nextBlocks = Math.ceil(nextDuration / BLOCK_DURATION);

return (
Expand All @@ -49,7 +50,7 @@ export function CompletionScreen({
fontSize: "13px", color: "var(--accent-green-text)",
marginTop: "var(--s2)", letterSpacing: "0.07em",
}}>
{duration} seconds of sustained attention
{completedDuration} seconds of sustained attention
</p>

<div style={{
Expand Down
Loading