diff --git a/src/entities/EPubs/structs/EPubChapterLikeData.js b/src/entities/EPubs/structs/EPubChapterLikeData.js index aef88e309..ddf2b2589 100644 --- a/src/entities/EPubs/structs/EPubChapterLikeData.js +++ b/src/entities/EPubs/structs/EPubChapterLikeData.js @@ -8,7 +8,7 @@ function _buildContentsFromItems(items) { const content = []; for (const item of items) { if (item.image) { // if there is an image - const altText = item.ocrPhrases ? 'OCR Phrases: ' + item.ocrPhrases : '' // add in OCR data + const altText = item.ocrPhrases ? `OCR Phrases: ${item.ocrPhrases}` : '' // add in OCR data const imageData = new EPubImageData({src: item.image, alt: altText}); content.push(imageData) }