Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Commit fbfbbf7

Browse files
committed
unsetting expiry day and month from scope after form submission
1 parent 95133c1 commit fbfbbf7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/angular-payments.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,8 @@ angular.module('angularPayments', []);angular.module('angularPayments')
803803
button.prop('disabled', false);
804804
}
805805

806-
scope.expiryMonth = expMonthUsed ? scope.expMonth : null;
807-
scope.expiryYear = expYearUsed ? scope.expMonth : null;
806+
scope.expMonth = null;
807+
scope.expYear = null;
808808

809809
});
810810
}

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.

src/form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ angular.module('angularPayments')
8080
button.prop('disabled', false);
8181
}
8282

83-
scope.expiryMonth = expMonthUsed ? scope.expMonth : null;
84-
scope.expiryYear = expYearUsed ? scope.expMonth : null;
83+
scope.expMonth = null;
84+
scope.expYear = null;
8585

8686
});
8787
}

0 commit comments

Comments
 (0)