fix portfolio showing error on no data
This commit is contained in:
parent
6539eb2f4f
commit
5001deed68
1 changed files with 7 additions and 7 deletions
|
|
@ -233,13 +233,6 @@
|
||||||
<div class="container mx-auto max-w-7xl p-6">
|
<div class="container mx-auto max-w-7xl p-6">
|
||||||
{#if loading}
|
{#if loading}
|
||||||
<PortfolioSkeleton />
|
<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}
|
{:else if !$USER_DATA}
|
||||||
<div class="flex h-96 items-center justify-center">
|
<div class="flex h-96 items-center justify-center">
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
|
|
@ -249,6 +242,13 @@
|
||||||
<Button onclick={() => goto('/login')}>Log In</Button>
|
<Button onclick={() => goto('/login')}>Log In</Button>
|
||||||
</div>
|
</div>
|
||||||
</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}
|
{:else}
|
||||||
<!-- Portfolio Overview -->
|
<!-- Portfolio Overview -->
|
||||||
<div class="mb-8">
|
<div class="mb-8">
|
||||||
|
|
|
||||||
Reference in a new issue