Skip to content

Commit

Permalink
make 'jsonFileContent.bookCode' to upper case for safety reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
danielc-n committed May 2, 2024
1 parent 9097f27 commit 10e17eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 10e17eb

Please sign in to comment.