diff --git a/frontend/src/global.d.ts b/frontend/src/global.d.ts index efbaa35a9..23c8c2bc7 100644 --- a/frontend/src/global.d.ts +++ b/frontend/src/global.d.ts @@ -4,4 +4,4 @@ declare module "../tools/Merge"; declare module "../components/PageEditor"; declare module "../components/Viewer"; declare module "*.js"; -declare module '*.module.css'; \ No newline at end of file +declare module '*.module.css'; diff --git a/frontend/src/hooks/usePdfSignatureDetection.ts b/frontend/src/hooks/usePdfSignatureDetection.ts index 96d80fb9d..ea7d0bdf0 100644 --- a/frontend/src/hooks/usePdfSignatureDetection.ts +++ b/frontend/src/hooks/usePdfSignatureDetection.ts @@ -34,7 +34,7 @@ export const usePdfSignatureDetection = (files: File[]): PdfSignatureDetectionRe const page = await pdf.getPage(i); const annotations = await page.getAnnotations({ intent: 'display' }); - annotations.forEach(annotation => { + annotations.forEach((annotation: any) => { if (annotation.subtype === 'Widget' && annotation.fieldType === 'Sig') { foundSignature = true; } diff --git a/frontend/src/pages/HomePage.tsx b/frontend/src/pages/HomePage.tsx index 46ca33bef..d4f8de41e 100644 --- a/frontend/src/pages/HomePage.tsx +++ b/frontend/src/pages/HomePage.tsx @@ -25,7 +25,7 @@ function HomePageContent() { // Update file selection context when tool changes useEffect(() => { if (selectedTool) { - setMaxFiles(selectedTool.maxFiles); + setMaxFiles(selectedTool.maxFiles ?? -1); setIsToolMode(true); } else { setMaxFiles(-1);