Skip to content

Commit

Permalink
checking config keys
Browse files Browse the repository at this point in the history
  • Loading branch information
AakashGfude committed Dec 13, 2023
1 parent dd8457a commit d81a464
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/quantecon_book_theme/assets/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,9 @@ document.addEventListener("DOMContentLoaded", function () {
//check if there are authors
const isAuthor =
authors &&
authors.querySelectorAll("a").length &&
authors.querySelectorAll("a")[0].innerText !== "";
((authors.querySelectorAll("a").length &&
authors.querySelectorAll("a")[0].innerText !== "") ||
authors.innerText !== "");
if (isAuthor) {
newParagraph.innerHTML = authors.innerHTML;
}
Expand Down

1 comment on commit d81a464

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.