Add some temporary console logging to track book title errors
This commit is contained in:
parent
c241f7fb25
commit
d04999cc47
|
@ -6,6 +6,11 @@ export default class BookComponent extends Component {
|
||||||
@service('nav-state') navState;
|
@service('nav-state') navState;
|
||||||
|
|
||||||
get bookTitle() {
|
get bookTitle() {
|
||||||
|
if (typeof this.args.book == 'undefined') {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("Book: " + this.args.book.name);
|
||||||
let string = this.args.book.name.toLowerCase();
|
let string = this.args.book.name.toLowerCase();
|
||||||
if (this.isNumber(string.charAt(0))) {
|
if (this.isNumber(string.charAt(0))) {
|
||||||
return string.slice(0,1) + ' ' + string.charAt(2).toUpperCase() + string.slice(3);
|
return string.slice(0,1) + ' ' + string.charAt(2).toUpperCase() + string.slice(3);
|
||||||
|
|
|
@ -30,6 +30,8 @@ export default class ScriptureNavBarComponent extends Component {
|
||||||
});
|
});
|
||||||
if(foundValue) {
|
if(foundValue) {
|
||||||
return foundValue;
|
return foundValue;
|
||||||
|
} else {
|
||||||
|
console.log("Could not find: " + book.id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue