starshard/peafowl
Template
1
Fork 0
mirror of https://github.com/starshardstudio/peafowl.git synced 2024-11-24 14:04:20 +00:00

Don't show nameOriginalRow if there's no original name

This commit is contained in:
Steffo 2024-11-05 18:24:42 +01:00
parent 98699d85c3
commit 0bbb596c4c
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -17,7 +17,7 @@ export default function(data: AnimeData, helpers: Lume.Helpers) {
const dateSeparator = (data.progress || data.hours_played) ? <hr/> : null const dateSeparator = (data.progress || data.hours_played) ? <hr/> : null
const nameOriginalRow = ( const nameOriginalRow = data.name_original ? (
<ReviewInfo.MetadataRow <ReviewInfo.MetadataRow
className={"anime-nameoriginal"} className={"anime-nameoriginal"}
label={"Original name"} label={"Original name"}
@ -26,7 +26,7 @@ export default function(data: AnimeData, helpers: Lume.Helpers) {
{data.name_original} {data.name_original}
</data> </data>
</ReviewInfo.MetadataRow> </ReviewInfo.MetadataRow>
) ) : null
const nameSeparator = (data.name_original) ? <hr/> : null const nameSeparator = (data.name_original) ? <hr/> : null