fix(booklet): Typo so links are found

This commit is contained in:
Tibo De Peuter 2025-01-26 20:47:31 +01:00
parent 32796e4026
commit 212c544eb1
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -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;
}