aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-24 23:29:23 -0700
committerAdam Soltys <[email protected]>2022-09-24 23:29:23 -0700
commite9c2d023137a07088a080f88a61cd49e418eb7ae (patch)
tree8bef7531e30e0e6d43705a30efbcf8dccee77bd5
parentc024efaa274d81379c5ddafcad346ff5efc449a4 (diff)
downloadcoinos-ui-e9c2d023137a07088a080f88a61cd49e418eb7ae.tar.gz
coinos-ui-e9c2d023137a07088a080f88a61cd49e418eb7ae.zip
don't display empty addresses
-rw-r--r--src/routes/[username]/dashboard/+page.svelte5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/[username]/dashboard/+page.svelte b/src/routes/[username]/dashboard/+page.svelte
index 4c0917dc..e6d2e46e 100644
--- a/src/routes/[username]/dashboard/+page.svelte
+++ b/src/routes/[username]/dashboard/+page.svelte
@@ -46,7 +46,10 @@
<div class="text-center mx-auto lg:text-left lg:mx-0 lg:ml-[calc(15vw-48px)] mt-20 w-full md:w-72">
<h2 class="text-3xl font-semibold">{user.username}</h2>
- <span class="text-secondary">{user.address}</span>
+
+ {#if user.address}
+ <span class="text-secondary">{user.address}</span>
+ {/if}
</div>
<div class="px-3 md:px-0 flex justify-center items-center mt-10 lg:mt-0 mb-20">