diff --git a/js/options.js b/js/options.js index 456b68a704..90278b5e7d 100644 --- a/js/options.js +++ b/js/options.js @@ -28,8 +28,8 @@ function updateNumberColors() { } function isCodeValid() { - var code = $('#code'); - return code.val().replace(/\D/g, '') == code.val() && code.val().length == 6; + var verificationCode = $('#code').val().replace(/\D/g, ''); + return verificationCode.length == 6; } $('#code').on('change', function() {