From 5e14c6e8e44b9a6ce1e55686bcb64ec4e443a774 Mon Sep 17 00:00:00 2001 From: sujitv19196 Date: Wed, 11 Oct 2023 15:46:08 -0500 Subject: [PATCH] fix lint error --- src/entities/EPubs/structs/EPubChapterLikeData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }