diff --git a/src/lib/components/HelloEarth/HelloEarth.svelte b/src/lib/components/HelloEarth/HelloEarth.svelte index 18b314d..e4ceaed 100644 --- a/src/lib/components/HelloEarth/HelloEarth.svelte +++ b/src/lib/components/HelloEarth/HelloEarth.svelte @@ -3,6 +3,8 @@ export let services; export let store; + // Watch for store changes + onMount(async () => { if (services && services.helloEarthAlert) { console.log('Alerted by HelloEarthAlert'); @@ -12,10 +14,23 @@ }); - -{#if $store} -
Hello Earth {$store.pkpWallet.address}
+{#if !$store} +
Loading store...
{:else} - -
Loading...
+
+ Hello Earth + {#if $store.pkpWallet}{$store.pkpWallet.address}{/if} + {#if $store.todos && $store.messages} + + + {/if} +
{/if} diff --git a/src/lib/core/Composite.svelte b/src/lib/core/Composite.svelte index ada9583..8a0b072 100644 --- a/src/lib/core/Composite.svelte +++ b/src/lib/core/Composite.svelte @@ -1,7 +1,9 @@