Skip to content

Commit 21e1b8f

Browse files
committed
Another build fix
1 parent 8495e42 commit 21e1b8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/pdf/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const PDFViewer = dynamic(
2020
export default function PDFViewerPage() {
2121
const { id } = useParams();
2222
const { setCurrentDocument, currDocName, clearCurrDoc } = usePDF();
23-
const { setText, stop } = useTTS();
23+
const { stop } = useTTS();
2424
const [error, setError] = useState<string | null>(null);
2525
const [isLoading, setIsLoading] = useState(true);
2626
const [zoomLevel, setZoomLevel] = useState<number>(100);

src/contexts/PDFContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function PDFProvider({ children }: { children: ReactNode }) {
151151
const onDocumentLoadSuccess = useCallback(({ numPages }: { numPages: number }) => {
152152
console.log('Document loaded:', numPages);
153153
setCurrDocPages(numPages);
154-
}, []);
154+
}, [setCurrDocPages]);
155155

156156
// Extract text from a PDF file
157157
const extractTextFromPDF = useCallback(async (pdfURL: string, currDocPage: number): Promise<string> => {

0 commit comments

Comments
 (0)