Skip to content

Work log form: "Total Hours: NaN" with the default time entry #380

Closed

Description

@thinkclay

Environment: local web at 375×812 (mobile viewport). pnpm supa start, pnpm env-local pnpm exec supabase --workdir packages functions serve api (see the supabase-CLI-pin issue), pnpm web. Worker login: [email protected] / password123. Employer login: [email protected] / password123 (org unicorn).

Found during the 2026-07-16 mobile smoke test.

As clay (employer mode) → org Unicorn → Logs → New Work Log.

Actual: With the default pre-filled time entry (Start 08:00, End 16:30) the footer reads "Total Hours: NaN".

Expected: "Total Hours: 8.5" — computed from the entries, updating as entries change, and never rendering NaN (fall back to 0 or hide until entries are valid).

Where to look: packages/scf-core/features/work-logs/components/WorkLogForm.tsx (grep "Total Hours"). Likely the initial entry's times are strings/uninitialized when the total is computed.

Acceptance: fresh form shows 8.5 for the default entry; adding/removing/editing entries keeps the total correct; no NaN in any state.

Activity

  1. added
    bug
    agent-ready
    on Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybugpriority: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions