diff --git a/prime-gaming.js b/prime-gaming.js index 25574b2..067ef37 100644 --- a/prime-gaming.js +++ b/prime-gaming.js @@ -367,7 +367,7 @@ try { dlc_unlinked[unlinked_store] ??= []; dlc_unlinked[unlinked_store].push(title); } else { - const code = await page.inputValue('input[type="text"]'); + const code = await page.inputValue('input[type="text"]').catch(_ => undefined); console.log(' Code to redeem game:', chalk.blue(code)); db.data[user][title].code = code; db.data[user][title].status = 'claimed';