[GH-ISSUE #3709] Ensure 'upcomingLength' is a number in 'useSchedules' #27322

Closed
opened 2026-04-18 03:47:29 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @coderabbitai[bot] on GitHub (Oct 22, 2024).
Original GitHub issue: https://github.com/actualbudget/actual/issues/3709

Originally assigned to: @joel-jeremy on GitHub.

An issue was identified where the upcomingLength value retrieved from useSyncedPref in the useSchedules hook is likely a string, but the getStatus function expects a number. This could lead to incorrect behavior or runtime errors due to type mismatches.

This issue was noted in PR #3685 by @coderabbitai[bot].

PR URL: https://github.com/actualbudget/actual/pull/3685
Comment URL: https://github.com/actualbudget/actual/pull/3685#discussion_r1806656519

Originally created by @coderabbitai[bot] on GitHub (Oct 22, 2024). Original GitHub issue: https://github.com/actualbudget/actual/issues/3709 Originally assigned to: @joel-jeremy on GitHub. An issue was identified where the `upcomingLength` value retrieved from `useSyncedPref` in the `useSchedules` hook is likely a string, but the `getStatus` function expects a number. This could lead to incorrect behavior or runtime errors due to type mismatches. This issue was noted in PR [#3685](https://github.com/actualbudget/actual/pull/3685) by [@coderabbitai[bot]](https://github.com/coderabbitai). **PR URL:** https://github.com/actualbudget/actual/pull/3685 **Comment URL:** https://github.com/actualbudget/actual/pull/3685#discussion_r1806656519
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#27322