From ebc079a7c13039a7bbbeb072b9c554fbc909bf00 Mon Sep 17 00:00:00 2001 From: Matt Fiddaman Date: Sun, 2 Feb 2025 17:52:11 +0000 Subject: [PATCH] always include the next date --- packages/loot-core/src/client/data-hooks/transactions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/loot-core/src/client/data-hooks/transactions.ts b/packages/loot-core/src/client/data-hooks/transactions.ts index a3259bb98e2..33e5f832729 100644 --- a/packages/loot-core/src/client/data-hooks/transactions.ts +++ b/packages/loot-core/src/client/data-hooks/transactions.ts @@ -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 ]; + let day = d.startOfDay(parseDate(schedule.next_date)); if (isRecurring) { while (day <= upcomingPeriodEnd) { const nextDate = getNextDate(dateConditions, day);