diff options
| author | Kenimarru <[email protected]> | 2024-01-06 16:55:30 +0100 |
|---|---|---|
| committer | Kenimarru <[email protected]> | 2024-01-06 16:55:30 +0100 |
| commit | 62e839576afd672c282468edb7a980a45d81f4f6 (patch) | |
| tree | 67fe072a1ed80a14b3caece8e7cf2a8a06f21fb6 /components | |
| parent | v0.2.3 (diff) | |
| download | hiruku-62e839576afd672c282468edb7a980a45d81f4f6.tar.xz hiruku-62e839576afd672c282468edb7a980a45d81f4f6.zip | |
v0.2.3
Diffstat (limited to 'components')
| -rw-r--r-- | components/Details.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/components/Details.vue b/components/Details.vue index 7659c22..7ca827a 100644 --- a/components/Details.vue +++ b/components/Details.vue @@ -13,7 +13,7 @@ <div class="hidden md:flex flex-col gap-2"> <NuxtImg :src="information.info.coverImage.large" :alt="information.info.title.romaji" :title="information.info.title.romaji" class="w-full h-72 object-cover rounded-sm" /> - <NuxtLink v-if="information.episodes.episodes.length > 0" + <NuxtLink v-if="information.episodes.episodes && information.episodes.episodes.length > 0" :to="`/e/${id}/${information.episodes.episodes[0].id}`" class="text-primary bg-secondary text-center rounded-sm py-1 hover:bg-opacity-75"> Watch Now</NuxtLink> @@ -27,7 +27,8 @@ <p class="text-primary bg-secondary rounded-sm px-2">{{ information.info.episodes ? information.info.episodes : "?" }} Episodes </p> - <p v-if="information.info.score.averageScore" class="text-primary bg-secondary rounded-sm px-2">{{ information.info.score.averageScore }}%</p> + <p v-if="information.info.score.averageScore" class="text-primary bg-secondary rounded-sm px-2">{{ + information.info.score.averageScore }}%</p> <p class="text-primary bg-secondary rounded-sm px-2">{{ information.info.format }}</p> <p class="text-primary bg-secondary rounded-sm px-2">{{ information.info.status }}</p> </div> @@ -40,7 +41,8 @@ </div> </section> </section> - <section v-if="information.recommendations.results.length > 0" class="space-y-4"> + <section v-if="information.recommendations.results && information.recommendations.results.length > 0" + class="space-y-4"> <section class="flex flex-col"> <h2 class="text-secondary text-xl font-semibold">Recommendations</h2> <p class="text-primary text-sm">Recommended For You</p> |