diff --git a/src/lib/united.js b/src/lib/united.js index 181ac8d..46709af 100644 --- a/src/lib/united.js +++ b/src/lib/united.js @@ -183,7 +183,7 @@ export async function pullData(amount = 100) { let currentPend = await db`SELECT id, amount, description, date from transaction where account_id = ${account.id} AND pending=true`; for (const pend of currentPend) { - const found = transactions.find((t) => t.transactionId === pend.id); + const found = transactions.find((t) => `${t.postedDate}:${t.amount}` === pend.id); state.push( `Pending transaction: ${pend.id} ${pend.description} ${pend.amount} on ${pend.date} found: ${found ? 'yes' : 'no'}` );