Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(Bank Account): use holder name instead of bank name (#257)
Browse files Browse the repository at this point in the history
* fix(Bank Account): use holder name instead of bank name

* tests(Bank Account): fix tests
  • Loading branch information
plondon authored and Sjors committed Sep 1, 2016
1 parent da2f5a2 commit e5d51da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/coinify/bank-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function BankAccount (obj) {
this._number = obj.account.number;
this._bank_name = obj.bank.name;
this._bank_address = new Address(obj.bank.address);
this._holder_name = obj.bank.name;
this._holder_name = obj.holder.name;
this._holder_address = new Address(obj.holder.address);
this._referenceText = obj.referenceText;
this._updated_at = obj.updateTime; // Not used in buy
Expand Down
2 changes: 1 addition & 1 deletion tests/coinify/coinify_bank_account_spec.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe "Coinify: Bank account", ->
expect(b._number).toBe(o.account.number)

expect(b._bank_name).toBe(o.bank.name)
expect(b._holder_name).toBe(o.bank.name)
expect(b._holder_name).toBe(o.holder.name)
expect(b._referenceText).toBe(o.referenceText)

expect(b._updated_at).toBe(o.updateTime)
Expand Down

0 comments on commit e5d51da

Please sign in to comment.