From 451ae1fdc35f18ebc46e8c01b80dde1380af9ba1 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Mon, 3 May 2021 00:40:58 +0200 Subject: [PATCH] Simplify reactive code --- src/Connect.svelte | 10 ++++------ src/Header.svelte | 10 +++++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/Connect.svelte b/src/Connect.svelte index 9f1960565..2a98a1a00 100644 --- a/src/Connect.svelte +++ b/src/Connect.svelte @@ -8,9 +8,7 @@ let walletUnavailable = !window.ethereum; - const connecting = derived(session, ($s) => { - return $s.connection === Connection.Connecting; - }); + $: connecting = $session.connection === Connection.Connecting;