pg: redeem gog: fix for undefined reason in response, #5
This commit is contained in:
parent
b2d69b4d26
commit
351bf00c7b
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ try {
|
|||
// {"reason":"code_used"}
|
||||
// {"reason":"code_not_found"}
|
||||
const reason = JSON.parse(rt).reason;
|
||||
if (reason.includes('captcha')) {
|
||||
if (reason && reason.includes('captcha')) {
|
||||
redeem_action = 'redeem (got captcha)';
|
||||
console.error(' Got captcha; could not redeem!');
|
||||
} else if (reason == 'code_used') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue