From d04999cc4757f25c8240223d84aab0e9265fa3c6 Mon Sep 17 00:00:00 2001 From: Leonard Smith Date: Tue, 4 May 2021 12:03:15 -0500 Subject: [PATCH] Add some temporary console logging to track book title errors --- app/components/book.js | 5 +++++ app/components/scripture-nav-bar.js | 2 ++ 2 files changed, 7 insertions(+) diff --git a/app/components/book.js b/app/components/book.js index c11eb6b..8bd2b83 100644 --- a/app/components/book.js +++ b/app/components/book.js @@ -6,6 +6,11 @@ export default class BookComponent extends Component { @service('nav-state') navState; get bookTitle() { + if (typeof this.args.book == 'undefined') { + return ''; + } + + console.log("Book: " + this.args.book.name); let string = this.args.book.name.toLowerCase(); if (this.isNumber(string.charAt(0))) { return string.slice(0,1) + ' ' + string.charAt(2).toUpperCase() + string.slice(3); diff --git a/app/components/scripture-nav-bar.js b/app/components/scripture-nav-bar.js index a8dbefc..49cf74e 100644 --- a/app/components/scripture-nav-bar.js +++ b/app/components/scripture-nav-bar.js @@ -30,6 +30,8 @@ export default class ScriptureNavBarComponent extends Component { }); if(foundValue) { return foundValue; + } else { + console.log("Could not find: " + book.id); } }); }