From b8e46e2b1713242bfdb59d155ae63566fe783810 Mon Sep 17 00:00:00 2001 From: Mika Schafroth Date: Tue, 4 Nov 2014 15:37:03 +0200 Subject: [PATCH] Allow updating of expiry date In context to https://github.com/laurihy/angular-payments/issues/56 removed the condition to allow updating expiration date. --- src/form.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/form.js b/src/form.js index bfd481e..8daebb0 100644 --- a/src/form.js +++ b/src/form.js @@ -52,11 +52,9 @@ angular.module('angularPayments') expMonthUsed = scope.expMonth ? true : false; expYearUsed = scope.expYear ? true : false; - if(!(expMonthUsed && expYearUsed)){ - exp = Common.parseExpiry(scope.expiry) - scope.expMonth = exp.month - scope.expYear = exp.year - } + exp = Common.parseExpiry(scope.expiry) + scope.expMonth = exp.month + scope.expYear = exp.year var button = form.find('button'); button.prop('disabled', true);