Skip to content

Commit

Permalink
Merge pull request #1760 from dusk-network/feature-1759
Browse files Browse the repository at this point in the history
explorer: Fix loading state (Home page)
  • Loading branch information
nortonandreev authored May 17, 2024
2 parents 229f43c + 1e40feb commit 6dfa10e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion explorer/src/lib/components/data-card/DataCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
/>
{/if}
</header>
{#if loading && data === null}
{#if loading && !data}
<p class="data-card__loading-notice">Loading...</p>
{:else if error || hasEmptyData}
<DataAlert on:retry {error} />
Expand Down
10 changes: 10 additions & 0 deletions explorer/src/routes/__tests__/__snapshots__/page.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,11 @@ exports[`home page > should render the home page, start polling for the latest c
<!--&lt;Button&gt;-->
</header>
<p
class="data-card__loading-notice"
>
Loading...
</p>
</div>
Expand Down Expand Up @@ -1080,6 +1085,11 @@ exports[`home page > should render the home page, start polling for the latest c
<!--&lt;Button&gt;-->
</header>
<p
class="data-card__loading-notice"
>
Loading...
</p>
</div>
Expand Down

0 comments on commit 6dfa10e

Please sign in to comment.