From 10e17ebd89d52400b3f330b7bff28b17ecc30574 Mon Sep 17 00:00:00 2001 From: danielc-n Date: Thu, 2 May 2024 17:09:06 +0200 Subject: [PATCH] make 'jsonFileContent.bookCode' to upper case for safety reasons --- .../src/components/EditorPage/JuxtalinearEditor/pages/Home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/src/components/EditorPage/JuxtalinearEditor/pages/Home.tsx b/renderer/src/components/EditorPage/JuxtalinearEditor/pages/Home.tsx index 6410b700..7995f7db 100644 --- a/renderer/src/components/EditorPage/JuxtalinearEditor/pages/Home.tsx +++ b/renderer/src/components/EditorPage/JuxtalinearEditor/pages/Home.tsx @@ -184,7 +184,7 @@ const Home: React.FC = () => { useEffect(() => { if (!loadingSentencesInProgress && sentences[0] !== undefined && jsonFileContent - && jsonFileContent.bookCode === bookId.toUpperCase()) { + && jsonFileContent.bookCode.toUpperCase() === bookId.toUpperCase()) { sentences[0].chunks.filter(({ source }) => source[0]).forEach((chunck) => { chunck.source.filter(e => e); });