aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-12-19 20:55:21 -0800
committerAdam Soltys <[email protected]>2022-12-19 20:55:21 -0800
commitf449ad56b33a2389cd392d9c8010eabdbffde57d (patch)
tree9cd1df7a9b54e035fe3663e3277f3c3edc8a51d1 /src/components
parent479453a98115c0a7b52bbce8ca93fff0f07a1de0 (diff)
downloadcoinos-ui-f449ad56b33a2389cd392d9c8010eabdbffde57d.tar.gz
coinos-ui-f449ad56b33a2389cd392d9c8010eabdbffde57d.zip
move locations check
Diffstat (limited to 'src/components')
-rw-r--r--src/components/About.svelte16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/components/About.svelte b/src/components/About.svelte
index 317c190e..c05f2dc2 100644
--- a/src/components/About.svelte
+++ b/src/components/About.svelte
@@ -85,10 +85,12 @@
</div>
</div>
-<div>
- <h3 class="text-5xl font-medium mb-5 text-center">{$t('about.locations.header')}</h3>
- <p class="text-secondary text-xl w-full md:w-10/12 lg:w-2/3 2xl:w-[800px] mx-auto mb-10">
- {@html $t('about.locations.description')}
- </p>
- <LocationsMap {locations} />
-</div>
+{#if locations?.length}
+ <div>
+ <h3 class="text-5xl font-medium mb-5 text-center">{$t('about.locations.header')}</h3>
+ <p class="text-secondary text-xl w-full md:w-10/12 lg:w-2/3 2xl:w-[800px] mx-auto mb-10">
+ {@html $t('about.locations.description')}
+ </p>
+ <LocationsMap {locations} />
+ </div>
+{/if}