kkapuria3/BestBuy-GPU-Bot

CVV Bug

rnario85 opened this issue · 2 comments

I think this section needs to be corrected. It errors out if the CVV field is not present. Also the first .value line is redundant.
Current:
// CVV Number of Saved Card
// Bug fix: by craz3drunner (discord member)
document.getElementById("cvv").value = CREDITCARD_CVV;
document.getElementById("cvv").focus();
document.getElementById("cvv").select();
if (!document.execCommand('insertText',false, CREDITCARD_CVV)) {
document.getElementById("cvv").value = CREDITCARD_CVV;
}

New:
if(document.getElementById("cvv") != null) {
document.getElementById("cvv").focus();
document.getElementById("cvv").select();
if (!document.execCommand('insertText',false, CREDITCARD_CVV)) {
document.getElementById("cvv").value = CREDITCARD_CVV;
}
}

I think this pull request should have solved this. If so, please close this issue @rnario85

Fixed with latest update.