Removes now redundant user.cards check

This commit is contained in:
nikolark committed 2015-08-08 12:56:09 +02:00
1 parent d0286c355f
commit 52f71eb11b
2 files changed
-6

No files matched your search

-3
View File
@@ -23,9 +23,6 @@ function getParameterByName(name) {
function update_user_with_card_details(user) {
/* Cards with a number lower than this is legacy as of 2015-08 */
var legacy_card_limit = 100000000;
if(user.cards === '') {
return user;
}
for(var j=0; j<user.cards.length; j++) {
if(parseInt(user.cards[j].card_number, 10) < legacy_card_limit) {
-3
View File
@@ -23,9 +23,6 @@ function getParameterByName(name) {
function update_user_with_card_details(user) {
/* Cards with a number lower than this is legacy as of 2015-08 */
var legacy_card_limit = 100000000;
if(user.cards === '') {
return user;
}
for(var j=0; j<user.cards.length; j++) {
if(parseInt(user.cards[j].card_number, 10) < legacy_card_limit) {