Skip to content

Commit

Permalink
[Hotfix] undefined expiration date on fixed VA
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleynguyen committed Nov 26, 2019
1 parent b77136f commit dabd946
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/va/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function createFixedVA(data) {
expected_amount: data.expectedAmt,
expiration_date: data.expirationDate
? data.expirationDate.toISOString()
: null,
: undefined,
is_single_use: data.isSingleUse,
description: data.description,
}),
Expand Down
1 change: 0 additions & 1 deletion test/va/account.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ module.exports = function(x) {
external_id: TestConstants.EXT_ID,
bank_code: TestConstants.BANK_CODE,
name: TestConstants.NAME,
expiration_date: null,
})
.reply(200, TestConstants.VA_DETAILS);
nock(x.opts.xenditURL)
Expand Down

0 comments on commit dabd946

Please sign in to comment.