diff --git a/public/js/hit.js b/public/js/hit.js index 4df55700..16e4a52d 100644 --- a/public/js/hit.js +++ b/public/js/hit.js @@ -99,20 +99,19 @@ export default class extends Component { } headerJSX() { - var length = `length: ${this.hitLength().toLocaleString()}`; - var meta = length.charAt(0).toUpperCase() + length.slice(1); + var meta = `Length: ${this.hitLength().toLocaleString()}`; if (this.props.showQueryCrumbs && this.props.showHitCrumbs) { // Multiper queries, multiple hits - meta = `hit ${this.props.hit.number} of query ${this.props.query.number}. ` + meta; + meta = `hit ${this.props.hit.number} of query ${this.props.query.number}. ${meta}`; } else if (this.props.showQueryCrumbs && !this.props.showHitCrumbs) { // Multiple queries, single hit - meta = `the only hit of query ${this.props.query.number}. ` + meta; + meta = `the only hit of query ${this.props.query.number}. ${meta}`; } else if (!this.props.showQueryCrumbs && this.props.showHitCrumbs) { // Single query, multiple hits - meta = `hit ${this.props.hit.number}. ` + meta; + meta = `hit ${this.props.hit.number}. ${meta}`; } return