fix portfolio showing error on no data

This commit is contained in:
Face 2025-06-08 22:05:58 +03:00
parent 6539eb2f4f
commit 5001deed68

View file

@ -233,13 +233,6 @@
<div class="container mx-auto max-w-7xl p-6">
{#if loading}
<PortfolioSkeleton />
{:else if error}
<div class="flex h-96 items-center justify-center">
<div class="text-center">
<div class="text-muted-foreground mb-4 text-xl">{error}</div>
<Button onclick={retryFetch}>Try Again</Button>
</div>
</div>
{:else if !$USER_DATA}
<div class="flex h-96 items-center justify-center">
<div class="text-center">
@ -249,6 +242,13 @@
<Button onclick={() => goto('/login')}>Log In</Button>
</div>
</div>
{:else if error}
<div class="flex h-96 items-center justify-center">
<div class="text-center">
<div class="text-muted-foreground mb-4 text-xl">{error}</div>
<Button onclick={retryFetch}>Try Again</Button>
</div>
</div>
{:else}
<!-- Portfolio Overview -->
<div class="mb-8">