Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Revert sign-in state when error
Alexis Sellier committed 4 years ago
commit 9072fe95bbd58a82176ce5ef02ecfa71423b2639
parent 75ffc5c06ddf1864476d4a1c940225c9f6ccce30
1 file changed +5 -1
modified src/SiweConnect.svelte
@@ -23,7 +23,11 @@
  disabled={connection === Connection.Connecting}
  on:click={async () => {
    connection = Connection.Connecting;
-
    await signInWithEthereum(seed, config);
+
    try {
+
      await signInWithEthereum(seed, config);
+
    } catch {
+
      connection = Connection.Disconnected;
+
    }
  }}
>
  {#if connection === Connection.Connecting}