diff --git a/backend/services/booklet.ts b/backend/services/booklet.ts index a61a9ce..8783cbb 100644 --- a/backend/services/booklet.ts +++ b/backend/services/booklet.ts @@ -16,7 +16,7 @@ export async function fetchBooklet(url: string, downloadPath: string, context: B // Find link with goodies const link: Locator = page.locator('a').filter({hasText: '/goodies/'}); const linkCount: number = await link.count(); - if (0 <= linkCount) { + if (linkCount <= 0) { await page.close(); return null; }