From 1e40feb0fa4af3e2879297f921d9ca6261b6cc56 Mon Sep 17 00:00:00 2001 From: Norton Andreev Date: Fri, 17 May 2024 16:56:47 +0300 Subject: [PATCH] explorer: Fix loading state (Home page) Resolves #1759 --- explorer/src/lib/components/data-card/DataCard.svelte | 2 +- .../routes/__tests__/__snapshots__/page.spec.js.snap | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/explorer/src/lib/components/data-card/DataCard.svelte b/explorer/src/lib/components/data-card/DataCard.svelte index 6188b2c80e..14eecb5bf6 100644 --- a/explorer/src/lib/components/data-card/DataCard.svelte +++ b/explorer/src/lib/components/data-card/DataCard.svelte @@ -42,7 +42,7 @@ /> {/if} - {#if loading && data === null} + {#if loading && !data}

Loading...

{:else if error || hasEmptyData} diff --git a/explorer/src/routes/__tests__/__snapshots__/page.spec.js.snap b/explorer/src/routes/__tests__/__snapshots__/page.spec.js.snap index 4ed04fc62e..e3778b5b1b 100644 --- a/explorer/src/routes/__tests__/__snapshots__/page.spec.js.snap +++ b/explorer/src/routes/__tests__/__snapshots__/page.spec.js.snap @@ -1046,6 +1046,11 @@ exports[`home page > should render the home page, start polling for the latest c +

+ Loading... +

@@ -1080,6 +1085,11 @@ exports[`home page > should render the home page, start polling for the latest c +

+ Loading... +