Skip to content

Commit

Permalink
Fix app hanging when schedule moved before weekend (#4196)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fidd authored Jan 19, 2025
1 parent 9d63b23 commit f35c5a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/loot-core/src/client/data-hooks/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ export function usePreviewTransactions(): UsePreviewTransactionsResult {

if (parseDate(nextDate) > upcomingPeriodEnd) break;

if (dates.includes(nextDate)) {
day = parseDate(addDays(day, 1));
continue;
}

dates.push(nextDate);
day = parseDate(addDays(nextDate, 1));
}
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/4196.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [matt-fidd]
---

Fix app hanging when schedule moved before weekend

0 comments on commit f35c5a0

Please sign in to comment.