make payeeName fall back to default if the custom mapped bank sync field is missing (#5460)

* payeeName should fallback if custom mapped field is empty

* note
This commit is contained in:
Matt Fiddaman
2025-08-04 14:23:14 -04:00
committed by GitHub
parent ee8f7453ba
commit 611f7b046a
2 changed files with 7 additions and 1 deletions

View File

@@ -407,7 +407,7 @@ async function normalizeBankSyncTransactions(transactions, acctId) {
const mapping = mappings.get(trans.amount <= 0 ? 'payment' : 'deposit');
const date = trans[mapping.get('date')] ?? trans.date;
const payeeName = trans[mapping.get('payee')];
const payeeName = trans[mapping.get('payee')] ?? trans.payeeName;
const notes = trans[mapping.get('notes')];
// Validate the date because we do some stuff with it. The db

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [matt-fidd]
---
Make payee fall back to default if the custom mapped field is missing