diff --git a/src/components/ChaptersBar.vue b/src/components/ChaptersBar.vue index d777c74e..30feb56a 100644 --- a/src/components/ChaptersBar.vue +++ b/src/components/ChaptersBar.vue @@ -9,11 +9,7 @@ v-for="(chapter, index) in chapters" @click="$emit('seek', chapter.start)" class="chapter-vertical" - :class=" - isCurrentChapter(chapters, index, playerPosition) - ? 'chapter-vertical bg-red-500/50' - : 'chapter-vertical' - " + :class="{ 'bg-red-500/50': isCurrentChapter(index) }" >