Skip to content

Commit 81aeb3e

Browse files
authored
Merge pull request #204 from BeardedBear/fix-artist-country
Fix artist country
2 parents 4ecfaed + b02cb17 commit 81aeb3e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<Notification />
1919
<Frame />
2020
<MinimizedWindows />
21-
</template>
21+
</template>
2222
</template>
2323

2424
<script lang="ts" setup>

src/components/artist/ArtistProfile.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
{{ typeof value === "string" ? value : value.name }}
77
</span>
88
</span>
9-
<template v-if="artistMetas?.area || artistMetas?.country">
9+
<!-- {{ artistMetas }} -->
10+
<template v-if="artistMetas?.country">
1011
<span class="dot desktop-only">·</span>
1112
<Tooltip :text="getCountry" placement="bottom">
1213
<img
13-
v-if="artistMetas?.country"
1414
:src="getCountryFlagUrl(artistMetas.country)"
1515
:alt="artistMetas?.area?.name || artistMetas?.country"
1616
class="country-flag"
@@ -20,6 +20,10 @@
2020
</strong>
2121
</Tooltip>
2222
</template>
23+
<template v-else>
24+
<span class="dot desktop-only">·</span>
25+
{{ artistMetas?.["begin-area"]?.name ||artistMetas?.["begin-area"]?.id || artistMetas?.area?.name }}
26+
</template>
2327
<template v-if="artistMetas?.['life-span']?.begin">
2428
<span class="dot">·</span>
2529
<span>

0 commit comments

Comments
 (0)