Fix bug disallowing renewing even if less than 30 days until expiry

This commit is contained in:
ponas committed 2017-08-17 00:30:33 +02:00
1 parent 0548cc04d6
commit 6868034175
1 file changed
+1 -1
+1 -1
View File
@@ -184,7 +184,7 @@ function updateMemberShipButton(user, order) {
//else if (user.last_membership.end_date <= today_plus_thirty_days && user.active_member_card) { //else if (user.last_membership.end_date <= today_plus_thirty_days && user.active_member_card) {
/* ...with a membership that expires soon can renew */ /* ...with a membership that expires soon can renew */
else if (user.last_membership.end_date <= today_plus_thirty_days) { else if (user.last_membership.end_date <= today_plus_thirty_days) {
_dom.membershipSubmitButton.prop('enabled', false); _dom.membershipSubmitButton.prop('disable', false);
} }
} }
/* User with expired membership can renew */ /* User with expired membership can renew */