Add some temporary console logging to track book title errors

This commit is contained in:
Leonard Smith 2021-05-04 12:03:15 -05:00
parent c241f7fb25
commit d04999cc47
2 changed files with 7 additions and 0 deletions

View File

@ -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);

View File

@ -30,6 +30,8 @@ export default class ScriptureNavBarComponent extends Component {
});
if(foundValue) {
return foundValue;
} else {
console.log("Could not find: " + book.id);
}
});
}