Fix city on PhotoCard

This commit is contained in:
2021-11-21 12:08:31 +01:00
parent 3c8e1e99cd
commit 8654e43af5
2 changed files with 5 additions and 2 deletions

View File

@@ -6,6 +6,8 @@
export let url: string = undefined
export let title: string = undefined
export let location: any = undefined
export let city: string = undefined
const sizes = {
small: { width: 224 },
@@ -33,7 +35,7 @@
height={24}
alt="Flag of {location.country.name}"
/>
<p>{title} - {location.name}, {location.city ? `, ${location.city}, ` : ''}{location.country.name}</p>
<p>{title} - {city ? `${city}, ` : ''}{location.name}, {location.country.name}</p>
</div>
{/if}
</a>