Skip to content

Commit 9643191

Browse files
committed
Merge pull request laurihy#54 from anark/master
Stop sending undefined values to stripe
2 parents cc4b841 + 03a0906 commit 9643191

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-payments",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"homepage": "https://github.com/laurihy/angular-payments",
55
"authors": [
66
"Lauri Hynynen <@laurihy>"

lib/angular-payments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ angular.module('angularPayments', []);angular.module('angularPayments')
750750
var ret = {};
751751

752752
for(i in possibleKeys){
753-
if(possibleKeys.hasOwnProperty(i)){
753+
if(data.hasOwnProperty(possibleKeys[i])){
754754
ret[camelToSnake(possibleKeys[i])] = angular.copy(data[possibleKeys[i]]);
755755
}
756756
}

lib/angular-payments.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)