Fixed character links when MAL ID is missing

This commit is contained in:
Eduard Urbach 2018-04-19 18:18:23 +02:00
parent 1dfd15f691
commit 09c97356de

View File

@ -79,10 +79,10 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
.inactive-user
Avatar(friend)
if character.GetMapping("myanimelist/character") != ""
h3.mountable Links
.light-button-group.mountable
if character.GetMapping("myanimelist/character") != ""
a.light-button(href="https://myanimelist.net/character/" + character.GetMapping("myanimelist/character"), target="_blank", rel="noopener")
Icon("external-link")
span MAL