fix undefined uberLoginSeconds causing crash
This commit is contained in:
parent
4310220c58
commit
404ea1cd04
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user