Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderKoen committed Oct 21, 2024
1 parent 2b239f6 commit f1e92ff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/loot-core/src/server/accounts/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ async function clearCategory(transaction, transferAcct) {
[transferAcct],
);

// We should clear the category to make sure it's not being
// accounted for in the budget, unless it should be in the case of
// transferring from an on-budget to off-budget account
// If the transfer is between two on-budget or two off-budget accounts,
// we should clear the category, because the category is not relevant
if (fromOffBudget === toOffBudget) {
await db.updateTransaction({ id: transaction.id, category: null });
if (transaction.transfer_id) {
Expand Down

0 comments on commit f1e92ff

Please sign in to comment.