Skip to content
Snippets Groups Projects
Unverified Commit b994a6a7 authored by DJ Mountney's avatar DJ Mountney Committed by GitHub
Browse files

Fix parse errors with OFX data with no transactions (#2342)

* Fix parse errors with OFX data with no transactions

- Return an empty array instead of an array of undefined
parent b1b266e8
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ function getInvStmtTrn(ofx) {
}
function getAsArray(value) {
return Array.isArray(value) ? value : [value];
return Array.isArray(value) ? value : value === undefined ? [] : [value];
}
function mapOfxTransaction(stmtTrn): OFXTransaction {
......
---
category: Bugfix
authors: [twk3]
---
Fix parse errors with OFX data with no transactions
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment