Skip to content

Commit

Permalink
Fix for undefined Plaid account names (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinschaich committed Apr 16, 2019
1 parent 51a9772 commit ab26498
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "mintable.js",
"author": "Kevin Schaich",
"license": "MIT",
"version": "1.2.0",
"version": "1.2.1",
"scripts": {
"circleci:dry-run": "circleci local execute -e MINTABLE_CONFIG=$MINTABLE_CONFIG",
"export": "node ./src/scripts/export.js",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const DEFAULT_CONFIG = {
'date',
'amount',
'name',
'account_details.official_name',
'account',
'category.0',
'category.1',
'pending'
Expand Down
3 changes: 2 additions & 1 deletion src/lib/plaid.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ const fetchAllCleanTransactions = async (startDate, endDate, pageSize = 250, off
official_name: account.official_name,
name: account.name,
nickname: transaction.accountNickname
}
},
account: account.official_name || account.name || transaction.accountNickname
}
})

Expand Down

0 comments on commit ab26498

Please sign in to comment.