fix undefined uberLoginSeconds causing crash

This commit is contained in:
PAlexanderFranklin 2024-02-17 19:22:31 -08:00
parent 4310220c58
commit 404ea1cd04

View File

@ -11,7 +11,7 @@ export async function loginToUber(page, options, testForHeaders) {
)
await page.click('button[type="submit"]')
for (let i = 0; i < options.uberLoginSeconds ?? 100; i++) {
for (let i = 0; i < (options.uberLoginSeconds ?? 100); i++) {
await utils.sleep(1000)
if (testForHeaders()) {
console.log("success")