Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
sujitv19196 committed Oct 11, 2023
1 parent 8810e77 commit 5e14c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entities/EPubs/structs/EPubChapterLikeData.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 5e14c6e

Please sign in to comment.