Skip to content

Commit

Permalink
fix: transaction-rules tests
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderKoen committed Oct 9, 2024
1 parent 1684d02 commit f8e8f73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/loot-core/src/server/accounts/transaction-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,9 @@ export async function prepareTransactionForRules(
const r: TransactionForRules = { ...trans };
if (trans.payee) {
const payee = await getPayee(trans.payee);
r.payee_name = payee?.name;
if (payee) {
r.payee_name = payee.name;
}
}

return r;
Expand Down

0 comments on commit f8e8f73

Please sign in to comment.