From b22f577cc2de21bb1f8370c84a1d263f09fd7eb6 Mon Sep 17 00:00:00 2001 From: Eugene Date: Thu, 15 Aug 2024 12:25:37 +0300 Subject: [PATCH] fix: marking --- src/components/PDFView/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/PDFView/index.tsx b/src/components/PDFView/index.tsx index 3ac05d0..d67d372 100644 --- a/src/components/PDFView/index.tsx +++ b/src/components/PDFView/index.tsx @@ -35,10 +35,10 @@ const PdfView = ({ }, [currentFile]) const filterByFile = ( currentUserMarks: CurrentUserMark[], - fileName: string + hash: string ): CurrentUserMark[] => { return currentUserMarks.filter( - (currentUserMark) => currentUserMark.mark.fileName === fileName + (currentUserMark) => currentUserMark.mark.pdfFileHash === hash ) } const isNotLastPdfFile = (index: number, files: CurrentUserFile[]): boolean => @@ -46,7 +46,7 @@ const PdfView = ({ return ( <> {files.map((currentUserFile, index, arr) => { - const { hash, pdfFile, filename, id } = currentUserFile + const { hash, pdfFile, id } = currentUserFile if (!hash) return return (