Skip to content

Commit

Permalink
always include the next date
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fidd committed Feb 2, 2025
1 parent ee17994 commit ebc079a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/loot-core/src/client/data-hooks/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ export function usePreviewTransactions(): UsePreviewTransactionsResult {
const status = statuses.get(schedule.id);
const isRecurring = scheduleIsRecurring(dateConditions);

const dates: string[] = [];
let day = today;
const dates: string[] = [ schedule.next_date ];

Check failure on line 177 in packages/loot-core/src/client/data-hooks/transactions.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `·schedule.next_date·` with `schedule.next_date`
let day = d.startOfDay(parseDate(schedule.next_date));
if (isRecurring) {
while (day <= upcomingPeriodEnd) {
const nextDate = getNextDate(dateConditions, day);
Expand Down

0 comments on commit ebc079a

Please sign in to comment.