Skip to content

Commit

Permalink
Fixed the issue with non selected books and chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
vipinpaul committed Nov 18, 2024
1 parent 3ef3e16 commit 8a2b757
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ export default function SelectVerse({
key={chapter.key}
role="presentation"
id={`chapter-${chapter.name}`}
onClick={(e) => { call === 'audio-project' ? (scopedChapters.includes(chapter.name) ? onChapterSelect(e, chapter.key) : '') : onChapterSelect(e, chapter.key); }}
className={call === 'audio-project' ? (scopedChapters.includes(chapter.name) ? styles.select : styles.disabled) : styles.select}
onClick={(e) => { call === 'audio-project' ? (scopedChapters && scopedChapters?.includes(chapter.name) ? onChapterSelect(e, chapter.key) : '') : onChapterSelect(e, chapter.key); }}
className={call === 'audio-project' ? (scopedChapters && scopedChapters?.includes(chapter.name) ? styles.select : styles.disabled) : styles.select}
>
{chapter.name}
</div>
Expand Down

0 comments on commit 8a2b757

Please sign in to comment.