Ensure 'upcomingLength' is a number in 'useSchedules' #1530

Closed
opened 2026-02-28 19:46:28 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @coderabbitai[bot] on GitHub (Oct 22, 2024).

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). 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#1530