diff --git a/packages/desktop-client/src/components/modals/ImportTransactionsModal.jsx b/packages/desktop-client/src/components/modals/ImportTransactionsModal.jsx index 3d0d5dca5ed..4a74a10b70f 100644 --- a/packages/desktop-client/src/components/modals/ImportTransactionsModal.jsx +++ b/packages/desktop-client/src/components/modals/ImportTransactionsModal.jsx @@ -1021,7 +1021,7 @@ export function ImportTransactionsModal({ options }) { setFilename(filename); setFileType(filetype); - const { errors, transactions: parsedTransactions } = + const { errors, transactions: parsedTransactions = [] } = await parseTransactions(filename, options); let index = 0; diff --git a/upcoming-release-notes/3541.md b/upcoming-release-notes/3541.md new file mode 100644 index 00000000000..bd1a1ea86ef --- /dev/null +++ b/upcoming-release-notes/3541.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [MatissJanis] +--- + +Fix import crashing if the QFX file is malformed.