fix build failure

This commit is contained in:
EthanHealy01 2025-08-13 16:53:50 +01:00
parent ec8abe4c63
commit 710c5e7a5e
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ export const usePdfSignatureDetection = (files: File[]): PdfSignatureDetectionRe
const page = await pdf.getPage(i); const page = await pdf.getPage(i);
const annotations = await page.getAnnotations({ intent: 'display' }); const annotations = await page.getAnnotations({ intent: 'display' });
annotations.forEach(annotation => { annotations.forEach((annotation: any) => {
if (annotation.subtype === 'Widget' && annotation.fieldType === 'Sig') { if (annotation.subtype === 'Widget' && annotation.fieldType === 'Sig') {
foundSignature = true; foundSignature = true;
} }

View File

@ -25,7 +25,7 @@ function HomePageContent() {
// Update file selection context when tool changes // Update file selection context when tool changes
useEffect(() => { useEffect(() => {
if (selectedTool) { if (selectedTool) {
setMaxFiles(selectedTool.maxFiles); setMaxFiles(selectedTool.maxFiles ?? -1);
setIsToolMode(true); setIsToolMode(true);
} else { } else {
setMaxFiles(-1); setMaxFiles(-1);