Skip to content

A local-first personal finance app

docs: update documentation/comments

Arthur E. Jones5756ef6f983b
diff --git a/packages/loot-design/src/components/modals/ImportTransactions.js b/packages/loot-design/src/components/modals/ImportTransactions.js
index 5f51d5a7d6..e1ad225c2d 100644
--- a/packages/loot-design/src/components/modals/ImportTransactions.js
+++ b/packages/loot-design/src/components/modals/ImportTransactions.js
@@ -55,6 +55,8 @@ export function parseDate(str, order) {
let parts = str.replace(/\s+/g, '').match(re[order]);
if (!parts) return null;
+ // We're only interested in the groups so slice the full matched string off
+ // of the array.
parts = parts.slice(1);
let year, month, day;